From fdeb6301606b09ee68ca5cdc208a44f07fe50ce4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Sat, 6 Apr 2019 12:55:13 +0200 Subject: Artificial 'now'. Getting to the point where "/keys" discards expired DKs due to the artificial 'now' given on the URL. --- src/lib/testing_api_cmd_check_keys.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/lib/testing_api_cmd_check_keys.c') diff --git a/src/lib/testing_api_cmd_check_keys.c b/src/lib/testing_api_cmd_check_keys.c index d6ab012dd..ff9647ad8 100644 --- a/src/lib/testing_api_cmd_check_keys.c +++ b/src/lib/testing_api_cmd_check_keys.c @@ -19,7 +19,14 @@ /** * @file exchange-lib/testing_api_cmd_check_keys.c - * @brief Implementation of "check keys" test command. + * @brief Implementation of "check keys" test command. XXX-NOTE: + * the number of 'expected keys' is NOT the number of the + * downloaded keys, but rather the number of keys that the + * libtalerutil library keeps locally. As for the current + * design, keys are _never_ discarded by the library, + * therefore their (expected) number is monotonically + * ascending. + * * @author Marcello Stanisci */ @@ -149,7 +156,7 @@ check_keys_run (void *cls, TALER_TESTING_interpreter_fail (is); return; } - /* /keys was updated, let's check they were OK! */ + /* "/keys" was updated, let's check they were OK! */ if (cks->num_denom_keys != is->keys->num_denom_keys) { /* Did not get the expected number of denomination keys! */ @@ -300,6 +307,9 @@ TALER_TESTING_cmd_check_keys_with_now cks->now = now; cks->with_now = GNUNET_YES; + /* Force to NOT cherry pick, otherwise they conflict. */ + cks->pull_all_keys = GNUNET_YES; + struct TALER_TESTING_Command cmd = { .cls = cks, .label = label, -- cgit v1.2.3