Skip to content

Commit fbe56b1

Browse files
committed
Set RUBY_TEST_TIMEOUT_SCALE=3 for --repeat-count=2 test
With --repeat-count=2, timing-related test seems to fail frequently. I'm not sure of the cause, but I want to reduce the errors by setting RUBY_TEST_TIMEOUT_SCALE.
1 parent e01e6ce commit fbe56b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/macos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ jobs:
102102
continue-on-error: true
103103

104104
- name: Set extra test options
105-
run: echo "TESTS=$TESTS ${{ matrix.test_opts }}" >> $GITHUB_ENV
105+
run: |
106+
echo "TESTS=$TESTS ${{ matrix.test_opts }}" >> $GITHUB_ENV
107+
echo "RUBY_TEST_TIMEOUT_SCALE=3" >> $GITHUB_ENV # With --repeat-count=2, flaky test by timeout occurs frequently for some reason
106108
if: matrix.test_opts
107109

108110
- name: make ${{ matrix.test_task }}

0 commit comments

Comments
 (0)