Skip to content

Commit

Permalink
debug windows test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wjordan committed Feb 11, 2020
1 parent 04ca650 commit 09d638d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/puma/launcher.rb
Expand Up @@ -201,6 +201,7 @@ def restart_args
end

def close_binder_listeners
puts "Close binder listeners"
@binder.close_listeners
end

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/integration.rb
Expand Up @@ -82,7 +82,7 @@ def restart_server(connection)
end

def wait_for_server_to_boot
true while @server.gets !~ /Ctrl-C/ # wait for server to say it booted
true while @server.gets.tap {|x| puts x} !~ /Ctrl-C/ # wait for server to say it booted
end

def connect(path = nil, unix: false)
Expand Down
4 changes: 2 additions & 2 deletions test/test_plugin.rb
Expand Up @@ -11,10 +11,10 @@ def test_plugin
cli_server "--control-url tcp://#{HOST}:#{@tcp_ctrl} --control-token #{TOKEN} -C test/config/plugin1.rb test/rackup/hello.ru"
File.open('tmp/restart.txt', mode: 'wb') { |f| f.puts "Restart #{Time.now}" }

true while (l = @server.gets) !~ /Restarting\.\.\./
true while (l = @server.gets.tap {|x| puts x}) !~ /Restarting\.\.\./
assert_match(/Restarting\.\.\./, l)

true while (l = @server.gets) !~ /Ctrl-C/
true while (l = @server.gets.tap {|x| puts x}) !~ /Ctrl-C/
assert_match(/Ctrl-C/, l)

out = StringIO.new
Expand Down

0 comments on commit 09d638d

Please sign in to comment.