Commit e13a8745 authored by Jeremy Hylton's avatar Jeremy Hylton

Reorganize the way concurrent update tests are integrated, because

they shouldn't run with mapping storage.
parent e044bfcc
...@@ -199,7 +199,7 @@ class CommonSetupTearDown(StorageTestBase): ...@@ -199,7 +199,7 @@ class CommonSetupTearDown(StorageTestBase):
self.fail("timed out waiting for storage to disconnect") self.fail("timed out waiting for storage to disconnect")
class ConnectionTests(CommonSetupTearDown, InvalidationTests): class ConnectionTests(CommonSetupTearDown):
"""Tests that explicitly manage the server process. """Tests that explicitly manage the server process.
To test the cache or re-connection, these test cases explicit To test the cache or re-connection, these test cases explicit
......
...@@ -20,6 +20,7 @@ from BTrees.check import check, display ...@@ -20,6 +20,7 @@ from BTrees.check import check, display
from BTrees.OOBTree import OOBTree from BTrees.OOBTree import OOBTree
from ZEO.tests.TestThread import TestThread from ZEO.tests.TestThread import TestThread
from ZEO.tests.ConnectionTests import CommonSetupTearDown
from ZODB.DB import DB from ZODB.DB import DB
from ZODB.POSException \ from ZODB.POSException \
...@@ -150,7 +151,7 @@ class VersionStressThread(TestThread): ...@@ -150,7 +151,7 @@ class VersionStressThread(TestThread):
cn.close() cn.close()
return 0 return 0
class InvalidationTests: class InvalidationTests(CommonSetupTearDown):
level = 2 level = 2
DELAY = 15 DELAY = 15
......
...@@ -20,7 +20,7 @@ platform-dependent scaffolding. ...@@ -20,7 +20,7 @@ platform-dependent scaffolding.
# System imports # System imports
import unittest import unittest
# Import the actual test class # Import the actual test class
from ZEO.tests import ConnectionTests from ZEO.tests import ConnectionTests, InvalidationTests
class FileStorageConfig: class FileStorageConfig:
...@@ -49,7 +49,8 @@ class MappingStorageConfig: ...@@ -49,7 +49,8 @@ class MappingStorageConfig:
class FileStorageConnectionTests( class FileStorageConnectionTests(
FileStorageConfig, FileStorageConfig,
ConnectionTests.ConnectionTests ConnectionTests.ConnectionTests.
InvalidationTests.InvalidationTests
): ):
"""FileStorage-specific connection tests.""" """FileStorage-specific connection tests."""
level = 2 level = 2
...@@ -72,6 +73,7 @@ class FileStorageTimeoutTests( ...@@ -72,6 +73,7 @@ class FileStorageTimeoutTests(
class BDBConnectionTests( class BDBConnectionTests(
BerkeleyStorageConfig, BerkeleyStorageConfig,
ConnectionTests.ConnectionTests ConnectionTests.ConnectionTests
InvalidationTests.InvalidationTests
): ):
"""Berkeley storage connection tests.""" """Berkeley storage connection tests."""
level = 2 level = 2
......
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