path: root/src/include
diff options
authorMarcello Stanisci <>2019-04-10 17:03:24 +0200
committerMarcello Stanisci <>2019-04-10 17:07:14 +0200
commit5c496633092de5ebccd43e7040db2cc92b72c332 (patch)
tree3ee5337ad7a29bcaf50828cc30fd116ed41ef90b /src/include
parentca718b9f1f76cd987d38572385d67b45114d4807 (diff)
Fixing twisted tests.
It has been observed that when a "twisted" test has "very little" commands in the stack, it uses to fail since the proxied service cannot be reached. This commit puts some delay before the first command gets run by the test interpreter; both in the form of a "blind" sleep, and with a more structured 'wget' loop.
Diffstat (limited to 'src/include')
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 31180c30..99be529b 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1442,6 +1442,19 @@ TALER_TESTING_cmd_sleep (const char *label,
+ * This CMD simply tries to connect via HTTP to the
+ * service addressed by @a url. It attemps 10 times
+ * before giving up and make the test fail.
+ *
+ * @param label label for the command.
+ * @param url complete URL to connect to.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_wait_service (const char *label,
+ const char *url);
* Make a "check keys" command. This type of command
* checks whether the number of denomination keys from
* @a exchange matches @a num_denom_keys.