From ddca1f5c68e112928d715e1aee2758c40e14fb51 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Aug 2018 14:19:17 +0200 Subject: add logic to allow fakebank transfers to be retried --- src/include/taler_testing_lib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 0db27d0e6..83523dfc4 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -620,6 +620,7 @@ TALER_TESTING_cmd_fakebank_transfer_with_ref const char *ref, const char *exchange_url); + /** * Create "fakebank transfer" CMD, letting the caller specifying * the merchant instance. This version is useful when a tip @@ -664,6 +665,19 @@ TALER_TESTING_cmd_fakebank_transfer_with_instance const char *exchange_url, const char *config_filename); + +/** + * Modify a fakebank transfer command to enable retries when the + * reserve is not yet full or we get other transient errors from the + * fakebank. + * + * @param cmd a fakebank transfer command + * @return the command with retries enabled + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_fakebank_transfer_retry (struct TALER_TESTING_Command cmd); + + /** * Make a "wirewatch" CMD. * -- cgit v1.2.3