Skip to content

Commit

Permalink
Fixed broken tests that were not updated after timeouts changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Jones committed Dec 19, 2014
1 parent 96c8485 commit ee72215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lemma/httpsign.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions tests/httpsign_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}]
Expand Down Expand Up @@ -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
}]
Expand Down

0 comments on commit ee72215

Please sign in to comment.