diff options
author | Florian Dold <florian@dold.me> | 2021-02-05 12:10:33 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-05 12:10:45 +0100 |
commit | fe944ac4dc5fda7ad88918527c821ba98ca00e11 (patch) | |
tree | 2c48b196fcdfe487f4a70380225d3f5ed1a30cbc /src/backend/taler-merchant-httpd_post-orders-ID-pay.c | |
parent | c3f66753f781e09e5da01a81dcae30c4691422a5 (diff) | |
download | merchant-fe944ac4dc5fda7ad88918527c821ba98ca00e11.tar.gz merchant-fe944ac4dc5fda7ad88918527c821ba98ca00e11.tar.bz2 merchant-fe944ac4dc5fda7ad88918527c821ba98ca00e11.zip |
increase pay timeout
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index d4c47822..a8c6a3ef 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -374,12 +374,13 @@ static struct GNUNET_TIME_Relative get_pay_timeout (unsigned int num_coins) { struct GNUNET_TIME_Relative t; - struct GNUNET_TIME_Relative sec5; - sec5 = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, - 10); - t = GNUNET_TIME_relative_multiply (sec5, - 1 + (num_coins / 20)); + /* FIXME: Do some benchmarking to come up with a better timeout. + * We've increased this value so the wallet integration test passes again + * on my (Florian) machine. + */ + t = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, + 15 * (1 + (num_coins / 5))); return t; } |