From 09d638d82bed4121a6e94b141e0350bd7a546757 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Mon, 10 Feb 2020 17:32:32 -0800 Subject: [PATCH] debug windows test failure --- lib/puma/launcher.rb | 1 + test/helpers/integration.rb | 2 +- test/test_plugin.rb | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index 37111d776b..2fb6d942ed 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -201,6 +201,7 @@ def restart_args end def close_binder_listeners + puts "Close binder listeners" @binder.close_listeners end diff --git a/test/helpers/integration.rb b/test/helpers/integration.rb index 7cd6b74e3d..fc8cde0a71 100644 --- a/test/helpers/integration.rb +++ b/test/helpers/integration.rb @@ -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) diff --git a/test/test_plugin.rb b/test/test_plugin.rb index 94daac67ee..9c4a3b35f2 100644 --- a/test/test_plugin.rb +++ b/test/test_plugin.rb @@ -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