Skip to content

Commit 948e33a

Browse files
committed
Relax test timing
On the RPi workers this sometimes fails (i.e. taking more than a second) because of the large number of posts we insert in this test code. Relax to 10s.
1 parent 2c225a7 commit 948e33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_room_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def test_fetch_since(client, room, user, no_rate_limit):
333333
assert post['seqno'] == j
334334
assert utils.decode_base64(post['data']) == f"fake data {j}".encode()
335335
assert utils.decode_base64(post['signature']) == pad32(f"fake sig {j}")
336-
assert -1 <= post['posted'] - time.time() <= 1
336+
assert -10 <= post['posted'] - time.time() <= 10
337337

338338
top_fetched = post['seqno']
339339

0 commit comments

Comments
 (0)