summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2014-02-15 12:30:04 -0800
committerPatrick Ohly <patrick.ohly@intel.com>2014-02-16 20:56:14 +0100
commit969c7946064bd8625bc8e9b4ad167ad2770cd4fa (patch)
tree2301b0ff0569159528501d19bf9c7233908c6d52
parent2e2767de7ce6d216139ec61f09190f077c4f8075 (diff)
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.
-rwxr-xr-xtest/test-dbus.py4
1 files 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: