Commit 34ff573a authored by Gintautas Miliauskas's avatar Gintautas Miliauskas

Dropped in a few delays in tests that (for me) remove consistently appearing

'test left threads behind' warnings. Tests in testZEO sometimes do
that too, but that's hard to reproduce.
parent d865b8e9
......@@ -299,6 +299,8 @@ class ConnectionTests(CommonSetupTearDown):
# Stores should fail here
self.assertRaises(ReadOnlyError, self._dostore)
self._storage.close()
# Get rid of the 'test left new threads behind' warning
time.sleep(0.1)
def checkReadOnlyFallbackWritable(self):
# Open a fallback client to a read-write server; stores succeed
......
......@@ -66,9 +66,9 @@ class AuthTest(CommonSetupTearDown):
def wait(self):
for i in range(25):
time.sleep(0.1)
if self._storage.test_connection:
return
time.sleep(0.1)
self.fail("Timed out waiting for client to authenticate")
def testOK(self):
......
......@@ -203,6 +203,7 @@ class MappingStorageTests(GenericTests):
# XXX There are still a bunch of tests that fail. Are there
# still test classes in GenericTests that shouldn't be there?
# XXX Is the above comment still relevant?
test_classes = [FileStorageTests, MappingStorageTests]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment