aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_batch_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-30 19:31:49 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-30 19:31:49 +0200
commitd55b093de8d5a39d7796ca68a4990ee4e9669c16 (patch)
tree0692bf465a54d05a78cd63a2b992e1f3902834f5 /src/testing/testing_api_cmd_batch_withdraw.c
parentab4aa4dcfd3477971b3fb0c81a4caffff953c145 (diff)
downloadexchange-d55b093de8d5a39d7796ca68a4990ee4e9669c16.tar.xz
-fix reserve history, include in tests
Diffstat (limited to 'src/testing/testing_api_cmd_batch_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_batch_withdraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_batch_withdraw.c b/src/testing/testing_api_cmd_batch_withdraw.c
index f135f5def..fb290f1e8 100644
--- a/src/testing/testing_api_cmd_batch_withdraw.c
+++ b/src/testing/testing_api_cmd_batch_withdraw.c
@@ -429,6 +429,8 @@ batch_withdraw_traits (void *cls,
TALER_TESTING_trait_end ()
};
+ if (index >= ws->num_coins)
+ return GNUNET_NO;
return TALER_TESTING_get_trait ((ws->expected_response_code == MHD_HTTP_OK)
? &traits[0] /* we have reserve history */
: &traits[1], /* skip reserve history */