Debian Codegraph @

debian/patches/03-smtptest

raw
1 Author: Alexander Zangerl <[email protected]>
2 Description: fakesmtp test tool doesn't always start fast enough
3
4 --- a/test/post/test-post-common.sh
5 +++ b/test/post/test-post-common.sh
6 @@ -25,11 +25,13 @@ echo "clientname: nosuchhost.example.com
7 # $1: output filename for fakesmtp, i.e., the sent message
8 # $2: expected output
9 # $3: optional switches for send
10 -
11 +# $4: don't retry
12 test_post ()
13 { pid=`"${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport`
14
15 - run_prog send -draft -server 127.0.0.1 -port $localport $3
16 + # The server doesn't always come up fast enough, so sleep a little
17 + sleep 5
18 + run_prog send -draft -server 127.0.0.1 -port $localport $3
19
20 #
21 # It's hard to calculate the exact Date: header post is going to