Skip to content

Commit 76a4fb6

Browse files
committed
.github/workflows/tests.yml: test HTTP 404 response handling
1 parent 7c1ee15 commit 76a4fb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ jobs:
3737
run: ./bin/phantomas.js http://127.0.0.1:8888/ --pretty | grep "generator" -A4
3838

3939
- name: Check that bin/phantomas.js handles errors correctly
40-
run: ./bin/phantomas.js http://127.0.0.1:1234/ 2>&1 | grep "net::ERR_CONNECTION_REFUSED at http://127.0.0.1:1234"
40+
run: |
41+
./bin/phantomas.js http://127.0.0.1:1234/ 2>&1 | grep "net::ERR_CONNECTION_REFUSED at http://127.0.0.1:1234"
42+
./bin/phantomas.js http://127.0.0.1:8888/not_found 2>&1 | grep "Error: Navigation failed because browser has disconnected!"

0 commit comments

Comments
 (0)