summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-11-13 09:44:34 +1100
committerMartin Schwenke <martin@meltin.net>2009-11-13 09:44:34 +1100
commit386d23757b23bd383c22e9356e4eebe709c71b1e (patch)
tree5ba7625c7b03926777782c2a9103b05b89aa6868 /ctdb/include
parent9dabb86f3f5270a17882fa72be7d79cd23032d5e (diff)
Test suite: Fix the NFS and CIFS tickle tests.
The NFS test sleeps for MonitorInterval to give CTDB time to record an NFS tickle. However, this isn't always long enough. This changes the test to wait until a monitor event has actually occurred. The CIFS test assumes that Samba is able to register a tickle with CTDB before it notices that netstat has registered the tickle and can use onnode to ask CTDB about it. That is an incorrect assumption - sometimes we can get to the point of asking CTDB about the tickle before Samba and CTDB have processed it. This adds a timeout loop that makes the CIFS test wait until the tickle has been registered or fail after 10 seconds. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 20a9d35933d89dc7eb710075f360686a49d78609)
Diffstat (limited to 'ctdb/include')
0 files changed, 0 insertions, 0 deletions