diff --git a/spec/datadog/tracing/contrib/suite/integration_spec.rb b/spec/datadog/tracing/contrib/suite/integration_spec.rb index 36a8955d30..eaf37eb1f8 100644 --- a/spec/datadog/tracing/contrib/suite/integration_spec.rb +++ b/spec/datadog/tracing/contrib/suite/integration_spec.rb @@ -164,11 +164,7 @@ def build(*dynamic_configurations) end end.to_app - if Gem::Version.new(Rack::RELEASE) >= Gem::Version.new('3') - server.mount '/', Rackup::Handler::WEBrick, app - else - server.mount '/', Rack::Handler::WEBrick, app - end + server.mount '/', Rack::Handler::WEBrick, app @thread = Thread.new { server.start } try_wait_until { started }