diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-10 17:21:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-10 17:21:30 +0100 |
commit | e9f8d268447dd2f1168a9189ec16e96c0fa3deec (patch) | |
tree | a6beef5395c3bd02351e7af73d5f611908205429 /src/lib/testing_api_cmd_poll_payment.c | |
parent | aa44ae235b484e09dbb49dfdb961a3f576205ca0 (diff) | |
download | merchant-e9f8d268447dd2f1168a9189ec16e96c0fa3deec.tar.gz merchant-e9f8d268447dd2f1168a9189ec16e96c0fa3deec.tar.bz2 merchant-e9f8d268447dd2f1168a9189ec16e96c0fa3deec.zip |
add test for long polling on check-payment
Diffstat (limited to 'src/lib/testing_api_cmd_poll_payment.c')
-rw-r--r-- | src/lib/testing_api_cmd_poll_payment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/testing_api_cmd_poll_payment.c b/src/lib/testing_api_cmd_poll_payment.c index c6200fb8..40bc79ec 100644 --- a/src/lib/testing_api_cmd_poll_payment.c +++ b/src/lib/testing_api_cmd_poll_payment.c @@ -268,7 +268,7 @@ poll_payment_cb (void *cls, cps->paid = paid; cps->http_status = http_status; cps->refunded = refunded; - if (refunded) + if (GNUNET_YES == refunded) cps->refund = *refund_amount; if (NULL != cps->cs) { @@ -415,6 +415,7 @@ poll_payment_conclude_run (void *cls, poll_cmd = TALER_TESTING_interpreter_lookup_command (is, ppc->start_reference); + GNUNET_assert (poll_cmd->run == &poll_payment_start_run); cps = poll_cmd->cls; if (NULL == cps->cpo) ppc->task = GNUNET_SCHEDULER_add_now (&conclude_task, |