Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __call__(self, **kwargs):


class TestJob(unittest.TestCase):
@settings(deadline=2000) # Increased from 500ms to 2000ms
@settings(deadline=5000) # Increased deadline for multiprocessing startup overhead
@given(st.sampled_from([bch.Executors.SERIAL, bch.Executors.MULTIPROCESSING]))
def test_basic(self, executor):
cp = CachedParamExample() # clears cache by default
Expand Down Expand Up @@ -49,7 +49,7 @@ def test_basic(self, executor):
res1cp3 = jc3.call(var1=1).result()
self.assertNotEqual(res1["result"], res1cp3["result"])

@settings(deadline=500)
@settings(deadline=5000) # Increased deadline for multiprocessing startup overhead
@given(st.sampled_from([bch.Executors.SERIAL, bch.Executors.MULTIPROCESSING]))
def test_overwrite(self, executor):
cp = CachedParamExample() # clears cache by default
Expand Down Expand Up @@ -81,7 +81,7 @@ def test_overwrite(self, executor):

self.assertNotEqual(res1["result"], res3["result"], f"{res1}")

@settings(deadline=2000) # Increased from 1000ms to 2000ms
@settings(deadline=5000) # Increased deadline for multiprocessing startup overhead
@given(st.sampled_from([bch.Executors.SERIAL, bch.Executors.MULTIPROCESSING]))
def test_bench_runner_parallel(self, executor):
run_cfg = bch.BenchRunCfg()
Expand Down