Refactored.
This commit is contained in:
parent
ec8198da9d
commit
21ed11b5b6
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue