1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update test to avoid Puma output format change

We are seeing some test failures for this test in #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 <eileencodes@gmail.com>
This commit is contained in:
John Crepezzi 2019-09-25 12:53:52 -04:00
parent d30579e12b
commit 4e66e2dffc

View file

@ -36,7 +36,7 @@ module ApplicationTests
rails("restart")
assert_output("Restarting", primary)
assert_output("tcp://localhost:3000", primary)
assert_output("Listening", primary)
ensure
kill(pid) if pid
end