Skip to content

Commit

Permalink
Disable GC during performance specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 5, 2019
1 parent b19c7b9 commit a327803
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/async/http/performance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@

let(:client) {Async::HTTP::Client.new(endpoint, protocol)}

before(:all) do
GC.disable
end

after(:all) do
GC.enable
end

describe "simple response" do
it "runs quickly" do
bound_endpoint = nil
Expand Down

0 comments on commit a327803

Please sign in to comment.