diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-10-24 12:58:19 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-10-24 12:58:19 +0100 |
commit | 444163417b289354b53d4708760f31d947ac6fd1 (patch) | |
tree | b2e07cfb7ca7f7364119ee37b2132935e36effcf /test | |
parent | 979c462ed43bd4f53f61a0031ec22967dea83902 (diff) |
Testsuite: handle slow test-hosts more intelligently
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0206 | 4 | ||||
-rw-r--r-- | test/confs/0618 | 4 | ||||
-rw-r--r-- | test/log/0618 | 18 | ||||
-rw-r--r-- | test/rejectlog/0618 | 2 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0206 | 8 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0618 | 8 |
6 files changed, 14 insertions, 30 deletions
diff --git a/test/confs/0206 b/test/confs/0206 index 628d2ec4d..7b3180dec 100644 --- a/test/confs/0206 +++ b/test/confs/0206 @@ -7,8 +7,8 @@ primary_hostname = myhost.test.ex # ----- Main settings ----- -ignore_bounce_errors_after = 2s -timeout_frozen_after = 5s +ignore_bounce_errors_after = 4s +timeout_frozen_after = 10s queue_run_in_order diff --git a/test/confs/0618 b/test/confs/0618 index db4bd3002..a461065e5 100644 --- a/test/confs/0618 +++ b/test/confs/0618 @@ -11,7 +11,7 @@ primary_hostname = myhost.test.ex .ifdef OPT dsn_advertise_hosts = * .endif -delay_warning = 3s : 24h +delay_warning = 6s : 24h accept_8bitmime = false pipelining_advertise_hosts = : @@ -89,5 +89,5 @@ tofile: begin retry -* * F,1m,3s +* * F,2m,10s # End diff --git a/test/log/0618 b/test/log/0618 index a572e11f3..ad992d9a2 100644 --- a/test/log/0618 +++ b/test/log/0618 @@ -56,21 +56,9 @@ 1999-03-02 09:44:33 End queue run: pid=pppp 1999-03-02 09:44:33 playout 1999-03-02 09:44:33 Start queue run: pid=pppp -1999-03-02 09:44:33 10HmbB-0005vi-00 event tcp:connect -1999-03-02 09:44:33 10HmbB-0005vi-00 event smtp:connect -1999-03-02 09:44:33 10HmbB-0005vi-00 event smtp:ehlo -1999-03-02 09:44:33 10HmbB-0005vi-00 event msg:rcpt:host:defer -1999-03-02 09:44:33 10HmbB-0005vi-00 event msg:rcpt:defer -1999-03-02 09:44:33 10HmbB-0005vi-00 event tcp:close -1999-03-02 09:44:33 10HmbB-0005vi-00 == rmt_defer@test.ex R=r2 T=smtp defer (-44) H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after RCPT TO:<rmt_defer@test.ex>: 451 Temporary local problem - please try later +1999-03-02 09:44:33 10HmbB-0005vi-00 == rmt_defer@test.ex routing defer (-51): retry time not reached 1999-03-02 09:44:33 10HmbD-0005vi-00 <= <> R=10HmbB-0005vi-00 U=EXIMUSER P=local S=sss for c@dump.ex -1999-03-02 09:44:33 10HmbC-0005vi-00 event tcp:connect -1999-03-02 09:44:33 10HmbC-0005vi-00 event smtp:connect -1999-03-02 09:44:33 10HmbC-0005vi-00 event smtp:ehlo -1999-03-02 09:44:33 10HmbC-0005vi-00 event msg:rcpt:host:defer -1999-03-02 09:44:33 10HmbC-0005vi-00 event msg:rcpt:defer -1999-03-02 09:44:33 10HmbC-0005vi-00 event tcp:close -1999-03-02 09:44:33 10HmbC-0005vi-00 == rmt_defer@test.ex R=r2 T=smtp defer (-44) H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after RCPT TO:<rmt_defer@test.ex>: 451 Temporary local problem - please try later +1999-03-02 09:44:33 10HmbC-0005vi-00 == rmt_defer@test.ex routing defer (-51): retry time not reached 1999-03-02 09:44:33 End queue run: pid=pppp 1999-03-02 09:44:33 10HmbB-0005vi-00 event msg:fail:internal 1999-03-02 09:44:33 10HmbB-0005vi-00 event msg:complete @@ -112,7 +100,5 @@ 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<c@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> 1999-03-02 09:44:33 10HmbC-0005vi-00 <= d@dump.ex H=(testclient) [ip4.ip4.ip4.ip4] P=esmtp S=sss for rmt_defer@test.ex 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<d@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> -1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<c@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> -1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<d@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> 1999-03-02 09:44:33 10HmbE-0005vi-00 <= e@dump.ex H=(testclient) [ip4.ip4.ip4.ip4] P=esmtp S=sss for rmt_reject@test.ex 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<e@dump.ex> rejected RCPT <rmt_reject@test.ex> diff --git a/test/rejectlog/0618 b/test/rejectlog/0618 index 3b9bea1a0..555a47591 100644 --- a/test/rejectlog/0618 +++ b/test/rejectlog/0618 @@ -3,6 +3,4 @@ 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<a@dump.ex> rejected RCPT <rmt_reject@test.ex> 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<c@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<d@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> -1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<c@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> -1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<d@dump.ex> temporarily rejected RCPT <rmt_defer@test.ex> 1999-03-02 09:44:33 H=localhost (myhost.test.ex) [127.0.0.1] F=<e@dump.ex> rejected RCPT <rmt_reject@test.ex> diff --git a/test/scripts/0000-Basic/0206 b/test/scripts/0000-Basic/0206 index 64afd8014..2739f29e1 100644 --- a/test/scripts/0000-Basic/0206 +++ b/test/scripts/0000-Basic/0206 @@ -6,11 +6,11 @@ sudo exim -Mf $msg1 **** # now 2 frozen, one of which is a bounce # check that ignore_bounce_errors_after finishes off the frozen bounce (only) -millisleep 2500 -exim -qf +#sleep 5 +exim -Tqt 5s/5s/ -qf **** -sleep 3 +#sleep 6 # check that timeout_frozen_after finishes off the (remaining) frozen -exim -q +exim -Tqt 11s/11s -q **** no_msglog_check diff --git a/test/scripts/0000-Basic/0618 b/test/scripts/0000-Basic/0618 index 13d395f02..69a53c691 100644 --- a/test/scripts/0000-Basic/0618 +++ b/test/scripts/0000-Basic/0618 @@ -76,8 +76,9 @@ exim -q # # Client requests notification of deferral. First time of trying, we get # a defer but queue-time probably has not hit the 1st retry time yet, so no DSN -# will be sent and the message remains queued. Later, after a sleep, we will -# try again. +# will be sent and the message remains queued. Then, claiming time has elapsed, +# we will look again (expecting a delay-DSN to be produced). We won't see a +# retry since the actual retry time has not passed. exim -z defer/delay **** client HOSTIPV4 PORT_D @@ -126,7 +127,6 @@ QUIT **** exim -q **** -sleep 3 # # # @@ -134,7 +134,7 @@ sleep 3 # We should see the notify for c@dump.ex but not d@dump.ex exim -z playout **** -exim -q +exim -Tqt 10s/ -q **** sleep 1 exim -Mrm $msg1 $msg2 |