summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_merchant_get_tip.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-04 21:02:35 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-04 21:02:35 +0100
commit874a89a648c9f06e54a9e5a3bdc987a87ef8247b (patch)
tree58ab27592b1140848186596170dc0b859518faa1 /src/testing/testing_api_cmd_merchant_get_tip.c
parentdc5a68932a5803e2687749453aaacf256c340a14 (diff)
downloadmerchant-874a89a648c9f06e54a9e5a3bdc987a87ef8247b.tar.gz
merchant-874a89a648c9f06e54a9e5a3bdc987a87ef8247b.tar.bz2
merchant-874a89a648c9f06e54a9e5a3bdc987a87ef8247b.zip
fix trait usage
Diffstat (limited to 'src/testing/testing_api_cmd_merchant_get_tip.c')
-rw-r--r--src/testing/testing_api_cmd_merchant_get_tip.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testing/testing_api_cmd_merchant_get_tip.c b/src/testing/testing_api_cmd_merchant_get_tip.c
index 791fc731..81be677d 100644
--- a/src/testing/testing_api_cmd_merchant_get_tip.c
+++ b/src/testing/testing_api_cmd_merchant_get_tip.c
@@ -210,15 +210,13 @@ merchant_get_tip_cb (void *cls,
const struct TALER_Amount *total;
if (GNUNET_OK !=
- TALER_TESTING_get_trait_amounts (pickup_cmd,
- pickups[i].num_planchets,
- &total))
+ TALER_TESTING_get_trait_amount (pickup_cmd,
+ &total))
TALER_TESTING_FAIL (gts->is);
if ( (GNUNET_OK !=
TALER_amount_cmp_currency (total,
- &pickups[i].
- requested_amount)) ||
+ &pickups[i].requested_amount)) ||
(0 != TALER_amount_cmp (total,
&pickups[i].requested_amount)))
{
@@ -232,10 +230,12 @@ merchant_get_tip_cb (void *cls,
total));
}
}
- if ((GNUNET_OK != TALER_amount_cmp_currency (&expected_total_picked_up,
- total_picked_up)) ||
- (0 != TALER_amount_cmp (&expected_total_picked_up,
- total_picked_up)))
+ if ( (GNUNET_OK !=
+ TALER_amount_cmp_currency (&expected_total_picked_up,
+ total_picked_up)) ||
+ (0 !=
+ TALER_amount_cmp (&expected_total_picked_up,
+ total_picked_up)) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Tip picked up amount does not match\n");