diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-06-14 12:33:11 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-06-14 12:33:11 -0400 |
commit | f54c79d89eca18440bd594cfc04d44fbb2e943e9 (patch) | |
tree | c16fc92e5e9764cf3297daa2e369a475b73d974b | |
parent | cb6db175060e24caf29ed7ee825eace5b705d1d1 (diff) | |
download | mongo-f54c79d89eca18440bd594cfc04d44fbb2e943e9.tar.gz |
Use self.reopen_conn() instead of rolling our own.
-rw-r--r-- | test/suite/test_cursor_random.py | 5 |
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 |