diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-05-18 15:32:08 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-05-18 15:32:08 +0200 |
commit | db344e1a2abbe932ec0efb67ab6ff5995c31e598 (patch) | |
tree | 3a5e4fa7bf3b93367d01d853996d0be72273a99a /src/testing/testing_api_cmd_merchant_get_tip.c | |
parent | 549e70fbc14fc18db7f5fe9266e91b7d13818671 (diff) | |
download | merchant-db344e1a2abbe932ec0efb67ab6ff5995c31e598.tar.gz merchant-db344e1a2abbe932ec0efb67ab6ff5995c31e598.tar.bz2 merchant-db344e1a2abbe932ec0efb67ab6ff5995c31e598.zip |
rename .success to .ok for consistency
Diffstat (limited to 'src/testing/testing_api_cmd_merchant_get_tip.c')
-rw-r--r-- | src/testing/testing_api_cmd_merchant_get_tip.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/testing/testing_api_cmd_merchant_get_tip.c b/src/testing/testing_api_cmd_merchant_get_tip.c index a8e7a67e..4dd1613a 100644 --- a/src/testing/testing_api_cmd_merchant_get_tip.c +++ b/src/testing/testing_api_cmd_merchant_get_tip.c @@ -110,16 +110,16 @@ merchant_get_tip_cb (void *cls, const struct TALER_Amount *initial_amount; GNUNET_assert (GNUNET_OK == - TALER_amount_set_zero (tsr->details.success.total_picked_up.currency, + TALER_amount_set_zero (tsr->details.ok.total_picked_up.currency, &expected_total_picked_up)); if (GNUNET_OK != TALER_TESTING_get_trait_amount (authorize_cmd, &initial_amount)) TALER_TESTING_FAIL (gts->is); if ((GNUNET_OK != - TALER_amount_cmp_currency (&tsr->details.success.total_authorized, + TALER_amount_cmp_currency (&tsr->details.ok.total_authorized, initial_amount)) || - (0 != TALER_amount_cmp (&tsr->details.success.total_authorized, + (0 != TALER_amount_cmp (&tsr->details.ok.total_authorized, initial_amount))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, @@ -135,7 +135,7 @@ merchant_get_tip_cb (void *cls, TALER_TESTING_get_trait_reason (authorize_cmd, &justification)) TALER_TESTING_FAIL (gts->is); - if (0 != strcmp (tsr->details.success.reason, + if (0 != strcmp (tsr->details.ok.reason, *justification)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, @@ -154,7 +154,7 @@ merchant_get_tip_cb (void *cls, TALER_TESTING_FAIL (gts->is); if (GNUNET_TIME_timestamp_cmp (*tip_expiration, !=, - tsr->details.success.expiration)) + tsr->details.ok.expiration)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Tip authorized expiration does not match\n"); @@ -162,7 +162,7 @@ merchant_get_tip_cb (void *cls, return; } } - if (tsr->details.success.pickups_length != gts->pickups_length) + if (tsr->details.ok.pickups_length != gts->pickups_length) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Length of pickups array does not match\n"); @@ -184,7 +184,7 @@ merchant_get_tip_cb (void *cls, &num_planchets)) TALER_TESTING_FAIL (gts->is); - if (*num_planchets != tsr->details.success.pickups[i].num_planchets) + if (*num_planchets != tsr->details.ok.pickups[i].num_planchets) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Pickup planchet count does not match\n"); @@ -202,9 +202,9 @@ merchant_get_tip_cb (void *cls, if ( (GNUNET_OK != TALER_amount_cmp_currency (total, - &tsr->details.success.pickups[i].requested_amount)) || + &tsr->details.ok.pickups[i].requested_amount)) || (0 != TALER_amount_cmp (total, - &tsr->details.success.pickups[i].requested_amount))) + &tsr->details.ok.pickups[i].requested_amount))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Pickup planchet sum does not match\n"); @@ -218,10 +218,10 @@ merchant_get_tip_cb (void *cls, } if ( (GNUNET_OK != TALER_amount_cmp_currency (&expected_total_picked_up, - &tsr->details.success.total_picked_up)) || + &tsr->details.ok.total_picked_up)) || (0 != TALER_amount_cmp (&expected_total_picked_up, - &tsr->details.success.total_picked_up)) ) + &tsr->details.ok.total_picked_up)) ) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Tip picked up amount does not match\n"); |