diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-27 18:37:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 18:37:42 +0200 |
commit | b449c7353ef5d789500244c790bae5affedf0ee7 (patch) | |
tree | 37376031b030558c8f4f3bb58da08a519a3b292f /src/testing/testing_api_cmd_status.c | |
parent | 3f630eafc4bac6249c518bc725bf1b19aa0287f1 (diff) | |
download | exchange-b449c7353ef5d789500244c790bae5affedf0ee7.tar.gz exchange-b449c7353ef5d789500244c790bae5affedf0ee7.tar.bz2 exchange-b449c7353ef5d789500244c790bae5affedf0ee7.zip |
work on testing ftbfs
Diffstat (limited to 'src/testing/testing_api_cmd_status.c')
-rw-r--r-- | src/testing/testing_api_cmd_status.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/testing/testing_api_cmd_status.c b/src/testing/testing_api_cmd_status.c index 6acfcc75b..1dba675b3 100644 --- a/src/testing/testing_api_cmd_status.c +++ b/src/testing/testing_api_cmd_status.c @@ -146,7 +146,7 @@ history_entry_cmp (const struct TALER_EXCHANGE_ReserveHistory *h1, * @param[in,out] found array to update * @return #GNUNET_OK if @a cmd action on reserve was found in @a history */ -static int +static enum GNUNET_GenericReturnValue analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub, const struct TALER_TESTING_Command *cmd, unsigned int history_length, @@ -155,15 +155,13 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub, { if (TALER_TESTING_cmd_is_batch (cmd)) { -#define BATCH_INDEX 1 struct TALER_TESTING_Command *cur; struct TALER_TESTING_Command *bcmd; cur = TALER_TESTING_cmd_batch_get_current (cmd); if (GNUNET_OK != - TALER_TESTING_get_trait_cmd (cmd, - BATCH_INDEX, - &bcmd)) + TALER_TESTING_get_trait_batch_cmds (cmd, + &bcmd)) { GNUNET_break (0); return GNUNET_SYSERR; @@ -388,16 +386,6 @@ status_cleanup (void *cls, } -/** - * Create a "reserve status" command. - * - * @param label the command label. - * @param reserve_reference reference to the reserve to check. - * @param expected_balance expected balance for the reserve. - * @param expected_response_code expected HTTP response code. - * - * @return the command. - */ struct TALER_TESTING_Command TALER_TESTING_cmd_status (const char *label, const char *reserve_reference, |