summaryrefslogtreecommitdiff
path: root/test/suite/test_stat01.py
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-10-21 10:11:37 -0400
committerKeith Bostic <keith@wiredtiger.com>2013-10-21 10:11:37 -0400
commitbaac80f874872175dbd87a57219d8b26cbedbecd (patch)
tree4952489b2330c89c0d8c4a9bab1f39db3577750b /test/suite/test_stat01.py
parenta1528aa2e33d400817dedc4b6246219cf320e81f (diff)
downloadmongo-baac80f874872175dbd87a57219d8b26cbedbecd.tar.gz
If the default statistics setting is "none", we have to configure
statistics to test.
Diffstat (limited to 'test/suite/test_stat01.py')
-rw-r--r--test/suite/test_stat01.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/suite/test_stat01.py b/test/suite/test_stat01.py
index 37ea9441648..21f19a2aea4 100644
--- a/test/suite/test_stat01.py
+++ b/test/suite/test_stat01.py
@@ -40,6 +40,13 @@ class test_stat01(wttest.WiredTigerTestCase):
config = 'key_format=S,allocation_size=512,internal_page_max=16K,leaf_page_max=128K'
nentries = 25
+ # Override WiredTigerTestCase, we have extensions.
+ def setUpConnectionOpen(self, dir):
+ conn = wiredtiger.wiredtiger_open(dir,
+ 'create,statistics=(fast),' +
+ 'error_prefix="%s: "' % self.shortid())
+ return conn
+
def statstr_to_int(self, str):
"""
Convert a statistics value string, which may be in either form: