Skip to content

Commit 4e66e2d

Browse files
Update test to avoid Puma output format change
We are seeing some test failures for this test in rails#37291. It looks like what's going on is that Puma has changed the output for this command between 4.1 and 4.2 Previously: ``` ... * Environment: development * Listening on tcp://localhost:3000 ... ``` Now: ``` ... * Environment: development * Listening on tcp://127.0.0.1:3000 * Listening on tcp://[::1]:3000 ... ``` So to get around this, instead of checking the binding address, just check for the presence of 'Listening' generally like we do on server start. Co-authored-by: eileencodes <[email protected]>
1 parent d30579e commit 4e66e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/application/server_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def teardown
3636
rails("restart")
3737

3838
assert_output("Restarting", primary)
39-
assert_output("tcp://localhost:3000", primary)
39+
assert_output("Listening", primary)
4040
ensure
4141
kill(pid) if pid
4242
end

0 commit comments

Comments
 (0)