Skip to content

Commit

Permalink
Set RUBY_TEST_TIMEOUT_SCALE=3 for --repeat-count=2 test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mame committed Jun 20, 2024
1 parent e01e6ce commit fbe56b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ jobs:
continue-on-error: true

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

- name: make ${{ matrix.test_task }}
Expand Down

0 comments on commit fbe56b1

Please sign in to comment.