summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_merchant_get_order.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-04 10:12:07 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-04 10:12:07 +0200
commit588f10b949d4d9995c8be8c4000e5e7de3af99c9 (patch)
treead7bd95b2110b1e839c7323dd1532d9ce792d39b /src/testing/testing_api_cmd_merchant_get_order.c
parent5f4f6262b4e3b1a1b6a88d5dd12c588084e703ad (diff)
downloadmerchant-588f10b949d4d9995c8be8c4000e5e7de3af99c9.tar.gz
merchant-588f10b949d4d9995c8be8c4000e5e7de3af99c9.tar.bz2
merchant-588f10b949d4d9995c8be8c4000e5e7de3af99c9.zip
get tests to work for #6363
Diffstat (limited to 'src/testing/testing_api_cmd_merchant_get_order.c')
-rw-r--r--src/testing/testing_api_cmd_merchant_get_order.c44
1 files changed, 0 insertions, 44 deletions
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)
{