1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Try to fix hung test on travis

This commit is contained in:
Evan Phoenix 2012-09-03 12:18:46 -04:00
parent efe5ea5d52
commit 4121e4c194

View file

@ -2,6 +2,7 @@ require "rbconfig"
require 'test/unit'
require 'socket'
require 'timeout'
require 'net/http'
require 'puma/cli'
require 'puma/control_cli'
@ -33,8 +34,7 @@ class TestIntegration < Test::Unit::TestCase
cmd = "#{core} --restart-cmd '#{core}' -b tcp://127.0.0.1:#{@tcp_port} #{opts}"
@server = IO.popen(cmd, "r")
true until @server.gets =~ /Ctrl-C/
sleep 1
@server
end
@ -80,8 +80,6 @@ class TestIntegration < Test::Unit::TestCase
s.readpartial(20)
signal :USR2
true until @server.gets =~ /Ctrl-C/
s.write "GET / HTTP/1.1\r\n\r\n"
assert_raises Errno::ECONNRESET do