Commit 2058338e 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 a1985bae
...@@ -299,6 +299,8 @@ class ConnectionTests(CommonSetupTearDown): ...@@ -299,6 +299,8 @@ class ConnectionTests(CommonSetupTearDown):
# Stores should fail here # Stores should fail here
self.assertRaises(ReadOnlyError, self._dostore) self.assertRaises(ReadOnlyError, self._dostore)
self._storage.close() self._storage.close()
# Get rid of the 'test left new threads behind' warning
time.sleep(0.1)
def checkReadOnlyFallbackWritable(self): def checkReadOnlyFallbackWritable(self):
# Open a fallback client to a read-write server; stores succeed # Open a fallback client to a read-write server; stores succeed
......
...@@ -66,9 +66,9 @@ class AuthTest(CommonSetupTearDown): ...@@ -66,9 +66,9 @@ class AuthTest(CommonSetupTearDown):
def wait(self): def wait(self):
for i in range(25): for i in range(25):
time.sleep(0.1)
if self._storage.test_connection: if self._storage.test_connection:
return return
time.sleep(0.1)
self.fail("Timed out waiting for client to authenticate") self.fail("Timed out waiting for client to authenticate")
def testOK(self): def testOK(self):
......
...@@ -203,6 +203,7 @@ class MappingStorageTests(GenericTests): ...@@ -203,6 +203,7 @@ class MappingStorageTests(GenericTests):
# XXX There are still a bunch of tests that fail. Are there # XXX There are still a bunch of tests that fail. Are there
# still test classes in GenericTests that shouldn't be there? # still test classes in GenericTests that shouldn't be there?
# XXX Is the above comment still relevant?
test_classes = [FileStorageTests, MappingStorageTests] 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