Skip to content

Commit

Permalink
ractor_test.rb: ignore stderr
Browse files Browse the repository at this point in the history
When rubygems is double loaded it fails the test.

The warning should happen in the first place but this
makes the test more resilient.
  • Loading branch information
byroot committed Oct 14, 2024
1 parent 7b68800 commit 513ddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ractor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class JSONInRactorTest < Test::Unit::TestCase
def test_generate
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}", ignore_stderr: true)
begin;
$VERBOSE = nil
require "json"
Expand Down

0 comments on commit 513ddea

Please sign in to comment.