aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-30 21:02:15 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-30 21:02:15 +0100
commitdd12062b919461ff555fd72ee4cbfd44796747e1 (patch)
tree965e3b887d853a3c53b0383b871434ba180fbbca
parentec8439e4bd8b3253cfe86667f771b50372d46816 (diff)
check oauth2 server start succeeded
-rw-r--r--src/testing/testing_api_cmd_oauth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_oauth.c b/src/testing/testing_api_cmd_oauth.c
index 17f0eaa68..535c6d94f 100644
--- a/src/testing/testing_api_cmd_oauth.c
+++ b/src/testing/testing_api_cmd_oauth.c
@@ -353,6 +353,12 @@ oauth_run (void *cls,
&handler_cb, oas,
MHD_OPTION_NOTIFY_COMPLETED, &cleanup, NULL,
NULL);
+ if (NULL == oas->mhd)
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (is);
+ return;
+ }
TALER_TESTING_interpreter_next (is);
}