summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-10-29 19:03:53 +0100
committerChristian Grothoff <christian@grothoff.org>2023-10-29 19:03:53 +0100
commite23c8b6a115158ee54653bff9af664ba9b73b44e (patch)
tree67fa1b550969bd6c25d1afde1cabf05fb5f48286 /src/testing
parent7d1a88305f83b7ef6b21772b9911299287d4d3df (diff)
downloadexchange-e23c8b6a115158ee54653bff9af664ba9b73b44e.tar.gz
exchange-e23c8b6a115158ee54653bff9af664ba9b73b44e.tar.bz2
exchange-e23c8b6a115158ee54653bff9af664ba9b73b44e.zip
-fix time sensititity of replay test
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_deposit.c45
1 files changed, 24 insertions, 21 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c
index 61074afa7..b7f7c66c5 100644
--- a/src/testing/testing_api_cmd_deposit.c
+++ b/src/testing/testing_api_cmd_deposit.c
@@ -430,7 +430,7 @@ deposit_run (void *cls,
else
{
ds->refund_deadline = ds->wallet_timestamp;
- ds->wire_deadline = GNUNET_TIME_timestamp_get ();
+ ds->wire_deadline = ds->wallet_timestamp;
}
GNUNET_CRYPTO_eddsa_key_get_public (&ds->merchant_priv.eddsa_priv,
&merchant_pub.eddsa_pub);
@@ -631,14 +631,15 @@ deposit_traits (void *cls,
struct TALER_TESTING_Command
-TALER_TESTING_cmd_deposit (const char *label,
- const char *coin_reference,
- unsigned int coin_index,
- const char *target_account_payto,
- const char *contract_terms,
- struct GNUNET_TIME_Relative refund_deadline,
- const char *amount,
- unsigned int expected_response_code)
+TALER_TESTING_cmd_deposit (
+ const char *label,
+ const char *coin_reference,
+ unsigned int coin_index,
+ const char *target_account_payto,
+ const char *contract_terms,
+ struct GNUNET_TIME_Relative refund_deadline,
+ const char *amount,
+ unsigned int expected_response_code)
{
struct DepositState *ds;
@@ -694,15 +695,16 @@ TALER_TESTING_cmd_deposit (const char *label,
struct TALER_TESTING_Command
-TALER_TESTING_cmd_deposit_with_ref (const char *label,
- const char *coin_reference,
- unsigned int coin_index,
- const char *target_account_payto,
- const char *contract_terms,
- struct GNUNET_TIME_Relative refund_deadline,
- const char *amount,
- unsigned int expected_response_code,
- const char *merchant_priv_reference)
+TALER_TESTING_cmd_deposit_with_ref (
+ const char *label,
+ const char *coin_reference,
+ unsigned int coin_index,
+ const char *target_account_payto,
+ const char *contract_terms,
+ struct GNUNET_TIME_Relative refund_deadline,
+ const char *amount,
+ unsigned int expected_response_code,
+ const char *merchant_priv_reference)
{
struct DepositState *ds;
@@ -758,9 +760,10 @@ TALER_TESTING_cmd_deposit_with_ref (const char *label,
struct TALER_TESTING_Command
-TALER_TESTING_cmd_deposit_replay (const char *label,
- const char *deposit_reference,
- unsigned int expected_response_code)
+TALER_TESTING_cmd_deposit_replay (
+ const char *label,
+ const char *deposit_reference,
+ unsigned int expected_response_code)
{
struct DepositState *ds;