diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-22 07:49:38 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-22 07:49:38 +0900 |
commit | efb706daad0e2e1039c6abb4879c837ef8bf4d10 (patch) | |
tree | 0633834983ac32d80ab5a7191699cab8061687e2 /railties | |
parent | 382a9563a3bc3dd1982f4db1258e8f0e7f5fac8e (diff) | |
download | rails-efb706daad0e2e1039c6abb4879c837ef8bf4d10.tar.gz rails-efb706daad0e2e1039c6abb4879c837ef8bf4d10.tar.bz2 rails-efb706daad0e2e1039c6abb4879c837ef8bf4d10.zip |
Fix server restart test on Puma 3.12.1
Since https://github.com/puma/puma/pull/1700, the default host is
correctly used. So `localhost` is used instead of `0.0.0.0`.
As a result, the log output on restart is changed, and the restart test
fails on Puma 3.12.1.
https://travis-ci.org/rails/rails/jobs/509239592#L2303-L2305
Specify binding explicitly to avoid being affected by Puma changes.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/server_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/server_test.rb b/railties/test/application/server_test.rb index 9df36b3444..5fe1b4e6e7 100644 --- a/railties/test/application/server_test.rb +++ b/railties/test/application/server_test.rb @@ -30,13 +30,13 @@ module ApplicationTests pid = nil Bundler.with_original_env do - pid = Process.spawn("bin/rails server -P tmp/dummy.pid", chdir: app_path, in: replica, out: replica, err: replica) + pid = Process.spawn("bin/rails server -b localhost -P tmp/dummy.pid", chdir: app_path, in: replica, out: replica, err: replica) assert_output("Listening", primary) rails("restart") assert_output("Restarting", primary) - assert_output("Inherited", primary) + assert_output("tcp://localhost:3000", primary) ensure kill(pid) if pid end |