Skip to content

Commit

Permalink
Remove unneeded ENV['TRAVIS'] from spec
Browse files Browse the repository at this point in the history
  • Loading branch information
MITSUBOSHI committed Feb 16, 2024
1 parent 82bc858 commit 9b90a53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/parallel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def cpus
end

it 'does not leave processes behind while running' do
skip if ENV['TRAVIS'] # this randomly fails on travis all the time :(
ruby("spec/cases/closes_processes_at_runtime.rb").gsub(/.* deprecated; use BigDecimal.*\n/, '').should == 'OK'
end

Expand Down Expand Up @@ -510,7 +509,6 @@ def cpus
end

it 'sets Parallel.worker_number when run with isolation' do
skip if ENV['TRAVIS'] # this randomly hangs on travis
out = ruby("spec/cases/map_worker_number_isolation.rb")
out.should == "0,1\nOK"
end
Expand Down Expand Up @@ -603,7 +601,7 @@ def cpus
end

it "does not slow down with lots of GC work in threads" do
Benchmark.realtime { ruby("spec/cases/no_gc_with_each.rb 2>&1") }.should <= (ENV["TRAVIS"] ? 15 : 10)
Benchmark.realtime { ruby("spec/cases/no_gc_with_each.rb 2>&1") }.should <= 10
end

it "can modify in-place" do
Expand Down

0 comments on commit 9b90a53

Please sign in to comment.