Skip to content

Commit

Permalink
Merge pull request #1350 from DataDog/ivoanjo/fix-potential-flaky-test
Browse files Browse the repository at this point in the history
Fix potential flaky test
  • Loading branch information
ivoanjo authored Feb 5, 2021
2 parents a4aadec + 89fabc8 commit 9ee8fc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/ddtrace/transport/http/adapters/net_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@

before do
server.mount_proc('/', &server_proc)
Thread.new { server.start }
@server_thread = Thread.new { server.start }
init_signal.pop
end

after { server.shutdown }
after do
server.shutdown
@server_thread.join
end
end

describe 'when sending traces through Net::HTTP adapter' do
Expand Down

0 comments on commit 9ee8fc7

Please sign in to comment.