Skip to content

Commit

Permalink
Add random rerun delay on test_buildrunner_scan_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejbrown committed Nov 5, 2024
1 parent 3b58d4a commit 2977fb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_buildrunner_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import random
import pytest
import platform
import subprocess
Expand Down Expand Up @@ -185,7 +186,7 @@ def test_buildrunner_arm_dir(test_dir: str, file_name, args, exit_code):
_test_buildrunner_file(test_dir, file_name, args, exit_code)


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

0 comments on commit 2977fb3

Please sign in to comment.