From ee722150a57ce56b04afc171cae11c20fd32e9ec Mon Sep 17 00:00:00 2001 From: Russell Jones Date: Fri, 19 Dec 2014 19:40:30 +0000 Subject: [PATCH] Fixed broken tests that were not updated after timeouts changed. --- lemma/httpsign.py | 2 +- tests/httpsign_test.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lemma/httpsign.py b/lemma/httpsign.py index 7ead3d1..20dc424 100644 --- a/lemma/httpsign.py +++ b/lemma/httpsign.py @@ -16,7 +16,7 @@ # constants MAX_SKEW_SEC = 5 # 5 sec -CACHE_TIMEOUT = 100 # 30 sec +CACHE_TIMEOUT = 100 # 100 sec CACHE_CAPACITY = 5000 * CACHE_TIMEOUT # 5,000 msg/sec * 100 sec = 500,000 msg SIGNATURE_VERSION = "2" diff --git a/tests/httpsign_test.py b/tests/httpsign_test.py index 35e0502..180ae39 100644 --- a/tests/httpsign_test.py +++ b/tests/httpsign_test.py @@ -177,14 +177,14 @@ def test_check_timestamp(tm): { # old timestamp "input": { - "timestamp": "1330837517", + "timestamp": "1330837467", }, "output": False }, { # timestamp from future "input": { - "timestamp": "1330837587", + "timestamp": "1330837578", }, "output": False }] @@ -230,7 +230,7 @@ def test_check_nonce(tm): # aged off first value, should not be in cache. "input": { "nonce": "0", - "mock_time": 1330837597, + "mock_time": 1330837667, }, "output": False }]