Skip to content

Commit

Permalink
Merge pull request #38 from y-yagi/bump-action
Browse files Browse the repository at this point in the history
Bump GitHub actions
  • Loading branch information
y-yagi authored Mar 4, 2024
2 parents 0637f69 + d977b24 commit cafc141
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
matrix:
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
8 changes: 5 additions & 3 deletions test/minitest/retry_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def fail
end
Minitest::Runnable.run_one_method(retry_test, :fail, self.reporter)
end

path = Gem::Version.new(Minitest::VERSION) >= Gem::Version.new("5.21.0") ? "test/minitest/retry_test.rb" : __FILE__
expect = <<-EOS
[MinitestRetry] retry 'fail' count: 1, msg: RuntimeError: parsing error\n #{__FILE__}:45:in `fail'
[MinitestRetry] retry 'fail' count: 2, msg: RuntimeError: parsing error\n #{__FILE__}:45:in `fail'
[MinitestRetry] retry 'fail' count: 3, msg: RuntimeError: parsing error\n #{__FILE__}:45:in `fail'
[MinitestRetry] retry 'fail' count: 1, msg: RuntimeError: parsing error\n #{path}:45:in `fail'
[MinitestRetry] retry 'fail' count: 2, msg: RuntimeError: parsing error\n #{path}:45:in `fail'
[MinitestRetry] retry 'fail' count: 3, msg: RuntimeError: parsing error\n #{path}:45:in `fail'
EOS

refute reporter.passed?
Expand Down

0 comments on commit cafc141

Please sign in to comment.