diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2024-10-27 00:56:23 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2024-10-27 00:56:23 +0200 |
commit | 2c669a0f8a7947952a8322d202a14e1f010e0a9a (patch) | |
tree | 41f8af2035e96030b2c78cb656bd7df89327989c /src/testing | |
parent | 567ff24946fefab54ae477651b1747e471f9cafb (diff) |
expand tests to cover latest GNUnet regression
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_exchange_p2p.c | 4 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_purse_get.c | 12 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/testing/test_exchange_p2p.c b/src/testing/test_exchange_p2p.c index 2a21bb723..821f37272 100644 --- a/src/testing/test_exchange_p2p.c +++ b/src/testing/test_exchange_p2p.c @@ -325,14 +325,14 @@ run (void *cls, GNUNET_TIME_UNIT_SECONDS, 1), /* expiration */ "withdraw-coin-1", - "EUR:1.01", + "EUR:1.02", NULL), TALER_TESTING_cmd_purse_poll ( "push-poll-purse-before-expire", MHD_HTTP_GONE, "purse-with-deposit-expire", "EUR:1", - true, + true, /* wait for merge */ GNUNET_TIME_UNIT_MINUTES), /* This should fail, as too much of the coin is already spend / in a purse */ diff --git a/src/testing/testing_api_cmd_purse_get.c b/src/testing/testing_api_cmd_purse_get.c index d5246660b..762c39fa6 100644 --- a/src/testing/testing_api_cmd_purse_get.c +++ b/src/testing/testing_api_cmd_purse_get.c @@ -128,15 +128,9 @@ purse_status_cb (void *cls, ss->pgh = NULL; if (ss->expected_response_code != rs->hr.http_status) { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected HTTP response code: %d in %s:%u\n", - rs->hr.http_status, - __FILE__, - __LINE__); - json_dumpf (rs->hr.reply, - stderr, - 0); - TALER_TESTING_interpreter_fail (ss->is); + TALER_TESTING_unexpected_status (is, + rs->hr.http_status, + ss->expected_response_code); return; } if (MHD_HTTP_OK == ss->expected_response_code) |