summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-06-14 12:33:11 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-06-14 12:33:11 -0400
commitf54c79d89eca18440bd594cfc04d44fbb2e943e9 (patch)
treec16fc92e5e9764cf3297daa2e369a475b73d974b
parentcb6db175060e24caf29ed7ee825eace5b705d1d1 (diff)
downloadmongo-f54c79d89eca18440bd594cfc04d44fbb2e943e9.tar.gz
Use self.reopen_conn() instead of rolling our own.
-rw-r--r--test/suite/test_cursor_random.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/suite/test_cursor_random.py b/test/suite/test_cursor_random.py
index fb2fbf90f18..db05e1dbabb 100644
--- a/test/suite/test_cursor_random.py
+++ b/test/suite/test_cursor_random.py
@@ -86,9 +86,8 @@ class test_cursor_random(wttest.WiredTigerTestCase):
# Close the connection so everything is forced to disk (otherwise the
# values are on an insert list and the underlying engine doesn't make
# random selections, it selects the middle of the list.
- self.conn.close()
- self.conn = self.setUpConnectionOpen(".")
- self.session = self.conn.open_session()
+ self.reopen_conn()
+
cursor = self.session.open_cursor(uri, None, "next_random=true")
last = ''
match = 0