Refactored.

This commit is contained in:
Thomas VIAL 2016-08-15 22:49:07 +02:00
parent ec8198da9d
commit 21ed11b5b6
No known key found for this signature in database
GPG Key ID: 0394CEE552FAFEFC
1 changed files with 2 additions and 2 deletions

View File

@ -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 ]