From 588f10b949d4d9995c8be8c4000e5e7de3af99c9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 4 May 2023 10:12:07 +0200 Subject: get tests to work for #6363 --- src/testing/testing_api_cmd_merchant_get_order.c | 44 ------------------------ 1 file changed, 44 deletions(-) (limited to 'src/testing/testing_api_cmd_merchant_get_order.c') diff --git a/src/testing/testing_api_cmd_merchant_get_order.c b/src/testing/testing_api_cmd_merchant_get_order.c index ce472a61..917a4a23 100644 --- a/src/testing/testing_api_cmd_merchant_get_order.c +++ b/src/testing/testing_api_cmd_merchant_get_order.c @@ -311,50 +311,6 @@ merchant_get_order_cb ( return; } } - { - struct TALER_Amount transfer_total; - const struct TALER_Amount *transfer_amount; - const struct TALER_Amount *transfer_fee; - - if ((GNUNET_OK != - TALER_TESTING_get_trait_amount (transfer_cmd, - &transfer_amount)) || - (GNUNET_OK != - TALER_TESTING_get_trait_fee (transfer_cmd, - &transfer_fee))) - { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Could not fetch wire transfer amount/fee\n"); - TALER_TESTING_interpreter_fail (gos->is); - return; - } - if (0 > TALER_amount_add (&transfer_total, - transfer_amount, - transfer_fee)) - { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Could not compute total wire transfer amount: %s\n", - TALER_amount2s (transfer_amount)); - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Could not compute total wire transfer amount: %s\n", - TALER_amount2s (transfer_fee)); - TALER_TESTING_interpreter_fail (gos->is); - return; - } - if ((GNUNET_OK != - TALER_amount_cmp_currency ( - &transfer_total, - &osr->details.success.details.paid.wts[i].total_amount)) || - (0 != TALER_amount_cmp ( - &transfer_total, - &osr->details.success.details.paid.wts[i].total_amount))) - { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Wire transfer total does not match\n"); - TALER_TESTING_interpreter_fail (gos->is); - return; - } - } } if (gos->refunded != osr->details.success.details.paid.refunded) { -- cgit v1.2.3