Skip to content

Commit 2977fb3

Browse files
committed
Add random rerun delay on test_buildrunner_scan_dir
1 parent 3b58d4a commit 2977fb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_buildrunner_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import random
23
import pytest
34
import platform
45
import subprocess
@@ -185,7 +186,7 @@ def test_buildrunner_arm_dir(test_dir: str, file_name, args, exit_code):
185186
_test_buildrunner_file(test_dir, file_name, args, exit_code)
186187

187188

188-
@pytest.mark.flaky(reruns=2, reruns_delay=1)
189+
@pytest.mark.flaky(reruns=2, reruns_delay=random.randint(1, 5))
189190
@pytest.mark.parametrize(
190191
"test_dir, file_name, args, exit_code",
191192
_get_test_runs(test_dir=f"{TEST_DIR}/test-files/scan", serial_tests=False),

0 commit comments

Comments
 (0)