diff --git a/test/ENABLE_POP3.bats b/test/ENABLE_POP3.bats index a39ce94b..53aaf0d5 100644 --- a/test/ENABLE_POP3.bats +++ b/test/ENABLE_POP3.bats @@ -1,7 +1,7 @@ @test "checking pop: server is ready" { run docker exec mail /bin/bash -c "nc -w 1 0.0.0.0 110 | grep '+OK'" - if [ $ENABLE_POP -eq 1 ]; then + if [ "$ENABLE_POP" -eq 1 ]; then [ "$status" -eq 0 ] else [ "$status" -eq 1 ] @@ -11,7 +11,7 @@ @test "checking pop: authentication works" { run docker exec mail /bin/sh -c "nc -w 1 0.0.0.0 110 < /tmp/docker-mailserver-test/auth/pop3-auth.txt" - if [ $ENABLE_POP -eq 1 ]; then + if [ "$ENABLE_POP" -eq 1 ]; then [ "$status" -eq 0 ] else [ "$status" -eq 1 ]