diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-04 05:19:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-04 05:19:47 +0200 |
commit | 27300ad1ccb56ad1f83cb3769f64dae21f5a0b85 (patch) | |
tree | e90ef82ae3ed47c36792924c4e3b660346c67adb | |
parent | 9f0245ca991b6284f474cca9c0e466f0eec5d738 (diff) |
round exec time
-rw-r--r-- | src/exchange-lib/test_exchange_api.c | 6 | ||||
-rw-r--r-- | src/exchange/taler-exchange-aggregator.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index af2aaf6df..0a82bac1a 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -2653,6 +2653,12 @@ run (void *cls) { .oc = OC_CHECK_BANK_DEPOSITS_EMPTY, .label = "check_bank_empty" }, + { .oc = OC_DEPOSIT_WTID, + .label = "deposit-wtid-ok", + .expected_response_code = MHD_HTTP_OK, + .details.deposit_wtid.deposit_ref = "deposit-simple" }, + + /* TODO: trigger aggregation logic and then check the cases where tracking succeeds! */ diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c index aeafd60f6..7d9390abf 100644 --- a/src/exchange/taler-exchange-aggregator.c +++ b/src/exchange/taler-exchange-aggregator.c @@ -434,6 +434,7 @@ deposit_cb (void *cls, au->row_id = row_id; au->wire = (json_t *) wire; au->execution_time = GNUNET_TIME_absolute_get (); + (void) GNUNET_TIME_round_abs (&au->execution_time); TALER_JSON_hash (au->wire, &au->h_wire); json_incref (au->wire); |