Testsuite: avoid time-quantization issue
[exim.git] / test / scripts / 0000-Basic / 0548
... / ...
CommitLineData
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#
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#
11need_ipv4
12#
13exim -DSERVER=server -bd -oX PORT_D
14****
15exim -odi userx@test.ex
16Test message
17****
18# defers from both
19dump retry
20millisleep 4200
21# At this point, the primary host retry rule ehould have timed out
22# and the secondary is ready for a retry
23exim -q
24****
25dump retry
26millisleep 4200
27# This should be similar
28exim -q
29****
30dump retry
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)
34exim -odi usery@test.ex
35Test message 2.
36****
37dump retry
38millisleep 4000
39exim -q
40****
41killdaemon
42no_msglog_check