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_join03.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_join03.py')
-rw-r--r-- | test/suite/test_join03.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/suite/test_join03.py b/test/suite/test_join03.py index 552e3b41748..9d97232b81e 100644 --- a/test/suite/test_join03.py +++ b/test/suite/test_join03.py @@ -61,7 +61,7 @@ class test_join03(wttest.WiredTigerTestCase): extarg = self.extensionArg([('extractors', 'csv', 'csv_extractor')]) connarg = 'create,error_prefix="{0}: ",{1}'.format( self.shortid(), extarg) - conn = wiredtiger.wiredtiger_open(dir, connarg) + conn = self.wiredtiger_open(dir, connarg) self.pr(`conn`) return conn |