@@ -2104,8 +2104,6 @@ def test_wf_nostate_cachelocations_wftaskrerun_propagateFalse(plugin, tmpdir):
2104
2104
# tasks should not be recomputed
2105
2105
assert len (list (Path (cache_dir1 ).glob ("F*" ))) == 2
2106
2106
assert len (list (Path (cache_dir2 ).glob ("F*" ))) == 0
2107
- assert t1 > 3
2108
- assert t2 < 1
2109
2107
2110
2108
2111
2109
@pytest .mark .parametrize ("plugin" , Plugins )
@@ -2213,14 +2211,10 @@ def test_wf_nostate_nodecachelocations(plugin, tmpdir):
2213
2211
results2 = wf2 .result ()
2214
2212
assert 12 == results2 .output .out
2215
2213
2216
- # checking execution time
2217
- assert t1 > 3
2218
- assert t2 < 0.5
2219
-
2220
2214
# checking if the second wf runs again, but runs only one task
2221
2215
assert wf1 .output_dir .exists ()
2222
2216
assert wf2 .output_dir .exists ()
2223
-
2217
+ # the second wf should rerun one task
2224
2218
assert len (list (Path (cache_dir1 ).glob ("F*" ))) == 2
2225
2219
assert len (list (Path (cache_dir2 ).glob ("F*" ))) == 1
2226
2220
@@ -2270,12 +2264,9 @@ def test_wf_nostate_nodecachelocations_upd(plugin, tmpdir):
2270
2264
# checking if the second wf runs again, but runs only one task
2271
2265
assert wf1 .output_dir .exists ()
2272
2266
assert wf2 .output_dir .exists ()
2273
-
2267
+ # the second wf should have only one task run
2274
2268
assert len (list (Path (cache_dir1 ).glob ("F*" ))) == 2
2275
2269
assert len (list (Path (cache_dir2 ).glob ("F*" ))) == 1
2276
- # checking execution time
2277
- assert t1 > 3
2278
- assert t2 < 0.5
2279
2270
2280
2271
2281
2272
@pytest .mark .parametrize ("plugin" , Plugins )
@@ -2639,9 +2630,9 @@ def test_wf_nostate_cachelocations_recompute(plugin, tmpdir):
2639
2630
assert wf1 .output_dir .exists ()
2640
2631
assert wf2 .output_dir .exists ()
2641
2632
2642
- # checking execution time ( second task shouldn't be recompute, t2 should be small)
2643
- assert t1 > 3
2644
- assert t2 < 1
2633
+ # the second wf should have only one task run
2634
+ assert len ( list ( Path ( cache_dir1 ). glob ( "F*" ))) == 2
2635
+ assert len ( list ( Path ( cache_dir2 ). glob ( "F*" ))) == 1
2645
2636
2646
2637
2647
2638
@pytest .mark .parametrize ("plugin" , Plugins )
0 commit comments