aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-04-06 14:05:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-04-06 14:06:36 +0000
commit082dd2c373f5f8454e83e1235ba4683d0aaf5977 (patch)
tree631b360a759c53d7e3451e2f396d459c276d7ef2
parentMerge pull request #6397 (diff)
downloadmonero-082dd2c373f5f8454e83e1235ba4683d0aaf5977.tar.xz
functional_tests: ensure signed timestamps are fresh
This fixes a test failure now that timestamps are more constrained
-rwxr-xr-xtests/functional_tests/rpc_payment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional_tests/rpc_payment.py b/tests/functional_tests/rpc_payment.py
index 3bf995f0c..5f23c2022 100755
--- a/tests/functional_tests/rpc_payment.py
+++ b/tests/functional_tests/rpc_payment.py
@@ -59,12 +59,14 @@ class RPCPaymentTest():
return fields
def refill_signatures(self):
+ self.signatures_time = time.time()
+ self.signatures = []
signatures = subprocess.check_output([self.make_test_signature, self.secret_key, '256']).decode('utf-8')
for line in signatures.split():
self.signatures.append(line.rstrip())
def get_signature(self):
- if len(self.signatures) == 0:
+ if len(self.signatures) == 0 or self.signatures_time + 10 < time.time():
self.refill_signatures()
s = self.signatures[0]
self.signatures = self.signatures[1:]