summaryrefslogtreecommitdiff
path: root/test/suite/test_config01.py
diff options
context:
space:
mode:
authorDon Anderson <dda@ddanderson.com>2015-11-30 16:50:15 -0500
committerDon Anderson <dda@ddanderson.com>2015-11-30 16:50:15 -0500
commit91a6c9254168c46409aa8fcb48687fcee16217c5 (patch)
treea76a653350e2a1c0677e60b2d4e47b5f7ea63394 /test/suite/test_config01.py
parent2d01a566ba7b3576cb5b45af55479b3c06995589 (diff)
downloadmongo-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_config01.py')
-rw-r--r--test/suite/test_config01.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/suite/test_config01.py b/test/suite/test_config01.py
index f40f9df3b20..6e499e8584a 100644
--- a/test/suite/test_config01.py
+++ b/test/suite/test_config01.py
@@ -41,7 +41,7 @@ class test_config01(test_base03.test_base03):
wtopen_args = 'create'
if hasattr(self, 'cache_size'):
wtopen_args += ',cache_size=' + str(self.cache_size)
- conn = wiredtiger.wiredtiger_open(dir, wtopen_args)
+ conn = self.wiredtiger_open(dir, wtopen_args)
self.pr(`conn`)
return conn