mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
f4ce5fe9ee
* Run integration tests in default * Add retry in CI * Convert integration test to ruby script for Windows * Attempt to add finicky tests back * Possible kinda janky solution * Only run master branch on travis (syntax fix) * Don't do integration tests on windows Can't be bothered to make those tests crossplatform * Remove join timeouts on read, let the main test timeout do it * Assert once * Sigh.
17 lines
365 B
Ruby
17 lines
365 B
Ruby
system "ruby -rubygems -Ilib bin/pumactl -F test/shell/t2_conf.rb start"
|
|
sleep 5
|
|
system "curl http://localhost:10103/"
|
|
|
|
system "ruby -rubygems -Ilib bin/pumactl -F test/shell/t2_conf.rb stop"
|
|
|
|
sleep 1
|
|
|
|
log = File.read("t2-stdout")
|
|
|
|
File.unlink "t2-stdout" if File.file? "t2-stdout"
|
|
|
|
if log =~ %r(GET / HTTP/1\.1) && !File.file?("t2-pid")
|
|
exit 0
|
|
else
|
|
exit 1
|
|
end
|