Commit | Line | Data |
---|---|---|
8852dff2 PH |
1 | # recipient and host defer interactions |
2 | # In this test, the primary host (normal IP address) defers the recipient, and | |
3 | # the secondary host (loopback address) defers the connection. | |
4 | # | |
1c477b37 JH |
5 | #XXX the test is relying on one-second accuracy, which is too tight. |
6 | # The measured time is only one-second precision, so certain to sometime | |
7 | # straddle a boundary, even ignoring scheduling and I/O-wait issues. | |
8 | # Consider a factor of (?) two, in the retry section of the conf/ file | |
9 | # and +1 /2 after the diff operation (runtest:463). | |
10 | # | |
8852dff2 PH |
11 | need_ipv4 |
12 | # | |
13 | exim -DSERVER=server -bd -oX PORT_D | |
14 | **** | |
15 | exim -odi userx@test.ex | |
16 | Test message | |
17 | **** | |
f6f261e6 | 18 | # defers from both |
8852dff2 | 19 | dump retry |
1c477b37 | 20 | millisleep 4200 |
f6f261e6 JH |
21 | # At this point, the primary host retry rule ehould have timed out |
22 | # and the secondary is ready for a retry | |
8852dff2 PH |
23 | exim -q |
24 | **** | |
25 | dump retry | |
1c477b37 | 26 | millisleep 4200 |
f6f261e6 | 27 | # This should be similar |
8852dff2 PH |
28 | exim -q |
29 | **** | |
30 | dump retry | |
f6f261e6 JH |
31 | # with luck this is tried within a second after the previous |
32 | # so the primary gets tried (it's a new RCPT so the existing retry record is irrelevant) | |
33 | # but the secondary is not yet ready for a retry (host record) | |
8852dff2 PH |
34 | exim -odi usery@test.ex |
35 | Test message 2. | |
36 | **** | |
f6f261e6 | 37 | dump retry |
1c477b37 | 38 | millisleep 4000 |
8852dff2 PH |
39 | exim -q |
40 | **** | |
41 | killdaemon | |
42 | no_msglog_check |