From 7f2b0dc35cca705ea4b78483a84d5d1318937fbe Mon Sep 17 00:00:00 2001 From: Nico Andrade Date: Fri, 2 Oct 2020 21:51:21 -0400 Subject: [PATCH] Update test for slow timeout --- tests/test_mongo_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mongo_core.py b/tests/test_mongo_core.py index 8cb99ca..dbd3052 100644 --- a/tests/test_mongo_core.py +++ b/tests/test_mongo_core.py @@ -206,7 +206,7 @@ def test_mongo_wait_for_calc_timeout_slow(): res2 = res_queue.get() assert res1 != res2 # Timeout kicked in. Two calls were done res3 = _wait_for_calc_timeout_mongo_slow(1, 2) - assert res2 == res3 # The cached value is returned + assert res2 == res3 or res1 == res3 # One of the cached values is returned class _BadMongoCollection: