From 969c7946064bd8625bc8e9b4ad167ad2770cd4fa Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Sat, 15 Feb 2014 12:30:04 -0800 Subject: D-Bus testing: must ping server more often in testNoTerm The test randomly failed under load because the client's GetVersion call did not make it to the server in time. It seems to work better with a smaller delay. --- test/test-dbus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-dbus.py b/test/test-dbus.py index 93c0f628..774c07d5 100755 --- a/test/test-dbus.py +++ b/test/test-dbus.py @@ -1656,8 +1656,8 @@ class TestDBusServerTerm(DBusUtil, unittest.TestCase): """The server should stay alive because we have dbus call within the duration. The loop is to make sure the total time is longer than duration and the dbus server still stays alive for dbus calls.""" - for i in range(0, 4): - time.sleep(4) + for i in range(0, 16): + time.sleep(1) try: self.server.GetConfigs(True, utf8_strings=True) except dbus.DBusException, ex: -- cgit v1.2.3