From 3c9fe99f6c812081cbb73d8d7cc4051e19583647 Mon Sep 17 00:00:00 2001 From: Peter Bull Date: Tue, 24 Jan 2023 23:28:36 -0800 Subject: [PATCH] stabailize test --- tests/test_cloudpath_file_io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_cloudpath_file_io.py b/tests/test_cloudpath_file_io.py index b49a93e4..8b9a7051 100644 --- a/tests/test_cloudpath_file_io.py +++ b/tests/test_cloudpath_file_io.py @@ -360,10 +360,11 @@ def test_close_file_idempotent(rig): # remove cache so we can be sure it can't be re-uploaded p._local.unlink() - # raises because cache is missing if not idempotent + # would raise trying to upload missing cache if we weren't idempotent f.close() # re-open and ensure things work + sleep(1) f = p.open("w") f.write("hello again!") f.close()