Skip to content
Browse files

Fix race conditions in thin options tests

  • Loading branch information...
1 parent c932247 commit 00f9fc19b177ef776240894d3a650f4d255e9590 @raggi raggi committed Nov 2, 2012
Showing with 2 additions and 13 deletions.
  1. +2 −13 test/spec_thin.rb
View
15 test/spec_thin.rb
@@ -11,7 +11,7 @@
Thin::Logging.silent = true
@thread = Thread.new do
- Rack::Handler::Thin.run(@app, :Host => @host='127.0.0.1', :Port => @port=9204) do |server|
+ Rack::Handler::Thin.run(@app, :Host => @host='127.0.0.1', :Port => @port=9204, :tag => "tag") do |server|
@server = server
end
end
@@ -77,19 +77,8 @@
response["rack.url_scheme"].should.equal "http"
end
- @server.stop!
- @thread.kill
-
- # Passing additional options to thin
-
- @thread = Thread.new do
- Rack::Handler::Thin.run(@app, :Host => @host='127.0.0.1', :Port => @port=9204, :tag => 'foo') do |server|
- @server = server
- end
- end
-
should "set tag for server" do
- @server.tag.should.equal 'foo'
+ @server.tag.should.equal 'tag'
end
@server.stop!

0 comments on commit 00f9fc1

Please sign in to comment.
Something went wrong with that request. Please try again.