Navigation Menu

Skip to content

Commit

Permalink
fixed random failure in webrick test via tenderlove
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider authored and tenderlove committed Jun 12, 2015
1 parent bd2413d commit 114ef7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/spec_webrick.rb
Expand Up @@ -14,7 +14,7 @@
:AccessLog => [])
@server.mount "/test", Rack::Handler::WEBrick,
Rack::Lint.new(TestRequest.new)
Thread.new { @server.start }
@thread = Thread.new { @server.start }
trap(:INT) { @server.shutdown }
end

Expand Down Expand Up @@ -185,5 +185,6 @@

after do
@server.shutdown
@thread.join
end
end

0 comments on commit 114ef7f

Please sign in to comment.