From 866df0fb66fb4a7c472c54e2a1ea1981334612c3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 10 Aug 2018 12:39:47 +0200 Subject: add retry support to withdraw test logic --- src/include/taler_testing_lib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 708d7340..71bc8cdc 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -736,6 +736,18 @@ TALER_TESTING_cmd_withdraw_denomination unsigned int expected_response_code); +/** + * Modify a withdraw command to enable retries when the + * reserve is not yet full or we get other transient + * errors from the exchange. + * + * @param cmd a withdraw command + * @return the command with retries enabled + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_withdraw_with_retry (struct TALER_TESTING_Command cmd); + + /** * Create a "wire" command. * -- cgit v1.2.3