diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-10 20:14:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-10 20:14:57 +0200 |
commit | 0b945df357bf820540b67b412d47aa9073797267 (patch) | |
tree | 4027a8711e7398070f556ae42447c101d91a063e /src/lib/testing_api_cmd_history.c | |
parent | 831272d4344151a62d2a8ffc4188d4302f64be5b (diff) | |
download | merchant-0b945df357bf820540b67b412d47aa9073797267.tar.gz merchant-0b945df357bf820540b67b412d47aa9073797267.tar.bz2 merchant-0b945df357bf820540b67b412d47aa9073797267.zip |
implement #5299
Diffstat (limited to 'src/lib/testing_api_cmd_history.c')
-rw-r--r-- | src/lib/testing_api_cmd_history.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/testing_api_cmd_history.c b/src/lib/testing_api_cmd_history.c index b87a6040..dabbf3cc 100644 --- a/src/lib/testing_api_cmd_history.c +++ b/src/lib/testing_api_cmd_history.c @@ -109,10 +109,9 @@ history_cb (void *cls, if (hs->http_status != hr->http_status) TALER_TESTING_FAIL (hs->is); - if (0 == hs->http_status) + if (MHD_HTTP_OK != hs->http_status) { - /* 0 was caused intentionally by the tests, - * move on without further checking. */ + /* move on without further checking. */ TALER_TESTING_interpreter_next (hs->is); return; } @@ -277,15 +276,16 @@ cmd_history2 (const char *label, hs->nrows = nrows; hs->merchant_url = merchant_url; hs->use_default_start = use_default_start; - - struct TALER_TESTING_Command cmd = { - .cls = hs, - .label = label, - .run = &history_run, - .cleanup = &history_cleanup - }; - - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = hs, + .label = label, + .run = &history_run, + .cleanup = &history_cleanup + }; + + return cmd; + } } |