commit a967e4a58cbeb6b64a60666834e5eb1983371c08 parent 463dd78324e0a02451ce06410fb691a73d09d6a1 Author: Christian Grothoff <christian@grothoff.org> Date: Mon, 13 Jul 2026 00:06:01 +0200 check refunds_length is as expected Diffstat:
| M | src/testing/testing_api_cmd_wallet_post_orders_refund.c | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/testing/testing_api_cmd_wallet_post_orders_refund.c b/src/testing/testing_api_cmd_wallet_post_orders_refund.c @@ -102,6 +102,15 @@ refund_cb ( case MHD_HTTP_OK: { struct TALER_Amount refunded_total; + if (wrr->details.ok.num_refunds != wrs->refunds_length) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Number of refunds found (%u) does not match expected (%u)\n", + wrr->details.ok.num_refunds, + wrs->refunds_length); + TALER_TESTING_interpreter_fail (wrs->is); + return; + } if (wrr->details.ok.num_refunds > 0) GNUNET_assert (GNUNET_OK == TALER_amount_set_zero (