mirror of
https://github.com/wassname/cachier.git
synced 2026-09-09 11:19:08 +08:00
Remove prints and a comment
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user