Skip to content

Commit

Permalink
chore: Use same port as everywhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Mar 25, 2022
1 parent b9ddd40 commit 24c0fa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx/tests/404.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load '../../.bats/common.bats.bash'
setup_file() {
docker-compose run \
--detach \
--publish 8889:8080 \
--publish 8888:8080 \
--rm \
--volume ${BATS_TEST_DIRNAME}/fixtures:/usr/share/nginx/html \
alpine
Expand All @@ -16,12 +16,12 @@ teardown_file() {
}

@test "nginx: should return status 404 (not a SPA)" {
run wget --server-response --quiet http://localhost:8889/pouet
run wget --server-response --quiet http://localhost:8888/pouet
assert_output --partial "HTTP/1.1 404 Not Found"
}

@test "nginx: should return custom 404 page (not a SPA)" {
run wget --content-on-error --output-document - http://localhost:8889/pouet
run wget --content-on-error --output-document - http://localhost:8888/pouet
assert_output --partial "CUSTOM 404 PAGE"
}

0 comments on commit 24c0fa3

Please sign in to comment.