diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-06 12:55:13 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-06 12:55:13 +0200 |
commit | fdeb6301606b09ee68ca5cdc208a44f07fe50ce4 (patch) | |
tree | bb78b958b6c8e51acb32eb203be25740cbffada2 /src/lib/testing_api_cmd_check_keys.c | |
parent | 8655a40ad72723c6968a9e99b00d505164699829 (diff) | |
download | exchange-fdeb6301606b09ee68ca5cdc208a44f07fe50ce4.tar.xz |
Artificial 'now'.
Getting to the point where "/keys" discards expired
DKs due to the artificial 'now' given on the URL.
Diffstat (limited to 'src/lib/testing_api_cmd_check_keys.c')
-rw-r--r-- | src/lib/testing_api_cmd_check_keys.c | 14 |
1 files changed, 12 insertions, 2 deletions
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, |