Remove prints and a comment

This commit is contained in:
Nico Andrade
2020-10-08 16:02:07 -04:00
committed by GitHub
parent adc9143f3a
commit 5afa69098c
-4
View File
@@ -177,14 +177,11 @@ def test_mongo_wait_for_calc_timeout_ok():
@cachier(mongetter=_test_mongetter, stale_after=MONGO_DELTA_LONG, next_time=False, wait_for_calc_timeout=2)
def _wait_for_calc_timeout_mongo_slow(arg_1, arg_2):
print("_wait_for_calc_timeout_mongo_slow")
"""Some slow function."""
sleep(3)
return random() + arg_1 + arg_2
def _calls_wait_for_calc_timeout_mongo_slow(res_queue):
print("_calls_wait_for_calc_timeout_mongo_slow")
res = _wait_for_calc_timeout_mongo_slow(1, 2)
res_queue.put(res)
@@ -192,7 +189,6 @@ def _calls_wait_for_calc_timeout_mongo_slow(res_queue):
def test_mongo_wait_for_calc_timeout_slow():
"""Testing for calls timing out to be performed twice when needed."""
_wait_for_calc_timeout_mongo_slow.clear_cache()
print("Cache cleared")
res_queue = queue.Queue()
thread1 = threading.Thread(
target=_calls_wait_for_calc_timeout_mongo_slow, kwargs={'res_queue': res_queue})