testsuite: interlock callout tests
[exim.git] / test / scripts / 0000-Basic / 0548
CommitLineData
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
11need_ipv4
12#
13exim -DSERVER=server -bd -oX PORT_D
14****
15exim -odi userx@test.ex
16Test message
17****
f6f261e6 18# defers from both
8852dff2 19dump retry
1c477b37 20millisleep 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
23exim -q
24****
25dump retry
1c477b37 26millisleep 4200
f6f261e6 27# This should be similar
8852dff2
PH
28exim -q
29****
30dump 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
34exim -odi usery@test.ex
35Test message 2.
36****
f6f261e6 37dump retry
1c477b37 38millisleep 4000
8852dff2
PH
39exim -q
40****
41killdaemon
42no_msglog_check