diff options
author | Don Anderson <dda@ddanderson.com> | 2015-11-30 16:50:15 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2015-11-30 16:50:15 -0500 |
commit | 91a6c9254168c46409aa8fcb48687fcee16217c5 (patch) | |
tree | a76a653350e2a1c0677e60b2d4e47b5f7ea63394 /test/suite/test_perf001.py | |
parent | 2d01a566ba7b3576cb5b45af55479b3c06995589 (diff) | |
download | mongo-91a6c9254168c46409aa8fcb48687fcee16217c5.tar.gz |
WT-2142. At the end of a test run, all open connections should be closed
to prevent cascading errors. Clean up and (mostly) standardize how connection
configuration is added to and modified.
Details:
- class TestSuiteConnection wraps an opened Connection,
calls to close() remove it from the list of active connections.
- WiredTigerTestCase.wiredtiger_open uses a TestSuiteConnection, and this
version of wiredtiger_open is now used everywhere.
- in tearDown(), active connections are explicitly closed.
- In WiredTigerTestCase derived classes, we now use use self.conn_config
if possible in tests in preference to overloading setUpConnectionOpen().
- Explicitly call close on extra connections created dynamically.
- Remove some unused code.
Diffstat (limited to 'test/suite/test_perf001.py')
-rw-r--r-- | test/suite/test_perf001.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/suite/test_perf001.py b/test/suite/test_perf001.py index 4f99e552b79..b6377e2f728 100644 --- a/test/suite/test_perf001.py +++ b/test/suite/test_perf001.py @@ -44,12 +44,7 @@ class test_perf001(wttest.WiredTigerTestCase): #('lsm-file', dict(tabletype='lsm',indextype='file')), #('lsm-lsm', dict(tabletype='lsm',indextype='lsm')), ]) - - def setUpConnectionOpen(self, dir): - wtopen_args = 'create,cache_size=512M' - conn = wiredtiger.wiredtiger_open(dir, wtopen_args) - self.pr(`conn`) - return conn + conn_config = 'cache_size=512M' def test_performance_of_indices(self): uri = 'table:' + self.table_name |