Add a delay in SMTP conversations to prevent sync errors.
This commit is contained in:
parent
708d227caf
commit
32284ad821
4 changed files with 5 additions and 5 deletions
|
|
@ -139,7 +139,7 @@ distribution_xcase__setup() {
|
|||
0 "flushing mail queue, forcing mail delivery"
|
||||
;;
|
||||
via_nc_esmtp)
|
||||
rlRun "mkesmtp | nc localhost 25 > nc.out" \
|
||||
rlRun "mkesmtp | while read line ; do sleep 1s ; echo "$line" ; done | nc localhost 25 > nc.out" \
|
||||
0 "send mail via ESMTP nc connection"
|
||||
;;
|
||||
via_gnutls_esmtps)
|
||||
|
|
@ -150,7 +150,7 @@ distribution_xcase__setup() {
|
|||
rlFail "(TEST ERROR)"
|
||||
return 3
|
||||
}
|
||||
rlRun "mkesmtp | $(mkclientcmd) >client.out 2>client.err" \
|
||||
rlRun "mkesmtp | while read line ; do sleep 1s ; echo "$line" ; done | $(mkclientcmd) >client.out 2>client.err" \
|
||||
0 "send mail via ESMTP client connection"
|
||||
;;
|
||||
*) distribution_xcase__id_error ;;
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ EOF
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
cat << "EOF" | nc localhost 25 &> TESTOUT
|
||||
cat << "EOF" | while read line ; do sleep 1s ; echo "$line" ; done | nc localhost 25 &> TESTOUT
|
||||
EHLO aliens.outerworld
|
||||
MAIL FROM: friendly@alien.xt
|
||||
RCPT TO: info@example.com
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ EOF
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
cat << "EOF" | nc localhost 25 &> TESTOUT
|
||||
cat << "EOF" | while read line ; do sleep 1s ; echo "$line" ; done | nc localhost 25 &> TESTOUT
|
||||
EHLO aliens.outerworld
|
||||
MAIL FROM: friendly@alien.xt
|
||||
RCPT TO: info@example.com
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ EOF
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
cat << "EOF" | nc localhost 25 &> TESTOUT
|
||||
cat << "EOF" | while read line ; do sleep 1s ; echo "$line" ; done | nc localhost 25 &> TESTOUT
|
||||
EHLO root.at
|
||||
MAIL FROM: alien@redneck.com
|
||||
RCPT TO: info@example.com
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue