From d55b093de8d5a39d7796ca68a4990ee4e9669c16 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 May 2022 19:31:49 +0200 Subject: -fix reserve history, include in tests --- src/testing/testing_api_cmd_batch_withdraw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/testing/testing_api_cmd_batch_withdraw.c') 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 */ -- cgit v1.2.3