Skip to content

Commit 1ee9a93

Browse files
committed
test with sleep
1 parent ddf54b5 commit 1ee9a93

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/test_cache_fileexecutor_serial.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def my_funct(a, b):
2323
return a + b
2424

2525

26+
def my_funct_sleep(a, b):
27+
sleep(1)
28+
return a + b
29+
30+
2631
def list_files_in_working_directory():
2732
return os.listdir(os.getcwd())
2833

@@ -141,7 +146,7 @@ def test_executor_function_cancel_false(self):
141146
q = Queue()
142147
q.put(
143148
{
144-
"fn": my_funct,
149+
"fn": my_funct_sleep,
145150
"args": (),
146151
"kwargs": {"a": 1, "b": 2},
147152
"future": fs1,

0 commit comments

Comments
 (0)