Skip to content

Commit a086db9

Browse files
committed
mark file hash tests as flaky
1 parent d23c510 commit a086db9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pydra/engine/tests/test_specs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def test_lazy_out(node_a, wf, graph):
9999
assert lf._get_value(wf, graph) == 3
100100

101101

102+
@pytest.mark.flaky(reruns=5)
102103
def test_input_file_hash_1(tmp_path):
103104
"""input definition with File types, checking when the checksum changes"""
104105
file = tmp_path / "in_file_1.txt"
@@ -124,6 +125,7 @@ def test_input_file_hash_1(tmp_path):
124125
assert hash1 != hash3
125126

126127

128+
@pytest.mark.flaky(reruns=5)
127129
def test_input_file_hash_2(tmp_path):
128130
"""input definition with ty.Union[File, ...] type, checking when the checksum changes"""
129131
file = tmp_path / "in_file_1.txt"
@@ -153,6 +155,7 @@ def test_input_file_hash_2(tmp_path):
153155
assert hash1 != hash4
154156

155157

158+
@pytest.mark.flaky(reruns=5)
156159
def test_input_file_hash_3(tmp_path):
157160
"""input definition with File types, checking when the hash and file_hash change"""
158161
file = tmp_path / "in_file_1.txt"
@@ -202,6 +205,7 @@ def test_input_file_hash_3(tmp_path):
202205
# assert filename in my_inp.files_hash["in_file"]
203206

204207

208+
@pytest.mark.flaky(reruns=5)
205209
def test_input_file_hash_4(tmp_path):
206210
"""input definition with nested list, that contain ints and Files,
207211
checking changes in checksums
@@ -234,6 +238,7 @@ def test_input_file_hash_4(tmp_path):
234238
assert hash1 != hash3
235239

236240

241+
@pytest.mark.flaky(reruns=5)
237242
def test_input_file_hash_5(tmp_path):
238243
"""input definition with File in nested containers, checking changes in checksums"""
239244
file = tmp_path / "in_file_1.txt"

0 commit comments

Comments
 (0)