summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/test_cursor_random.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_cursor_random.py')
-rwxr-xr-x[-rw-r--r--]src/third_party/wiredtiger/test/suite/test_cursor_random.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_cursor_random.py b/src/third_party/wiredtiger/test/suite/test_cursor_random.py
index 3b64532c036..ac9fd07a8ee 100644..100755
--- a/src/third_party/wiredtiger/test/suite/test_cursor_random.py
+++ b/src/third_party/wiredtiger/test/suite/test_cursor_random.py
@@ -103,7 +103,7 @@ class test_cursor_random(wttest.WiredTigerTestCase):
# Assert we only see 20% matches. We expect to see less than that, but we don't want
# to chase random test failures, either.
- cursor = self.session.open_cursor(uri, None, self.config)
+ cursor = ds.open_cursor(uri, None, self.config)
list=[]
for i in range(1,100):
self.assertEqual(cursor.next(), 0)
@@ -130,7 +130,7 @@ class test_cursor_random(wttest.WiredTigerTestCase):
# Assert we only see 20% matches. We expect to see less than that, but we don't want
# to chase random test failures, either.
- cursor = self.session.open_cursor(uri, None, self.config)
+ cursor = ds.open_cursor(uri, None, self.config)
list=[]
for i in range(1, 100):
self.assertEqual(cursor.next(), 0)
@@ -157,15 +157,15 @@ class test_cursor_random(wttest.WiredTigerTestCase):
# Close the connection so everything is forced to disk.
self.reopen_conn()
- start = self.session.open_cursor(uri, None)
+ start = ds.open_cursor(uri, None)
start.set_key(ds.key(10))
- end = self.session.open_cursor(uri, None)
+ end = ds.open_cursor(uri, None)
end.set_key(ds.key(10000-10))
- self.session.truncate(None, start, end, None)
+ ds.truncate(None, start, end, None)
self.assertEqual(start.close(), 0)
self.assertEqual(end.close(), 0)
- cursor = self.session.open_cursor(uri, None, self.config)
+ cursor = ds.open_cursor(uri, None, self.config)
for i in range(1,10):
self.assertEqual(cursor.next(), 0)
@@ -180,9 +180,9 @@ class test_cursor_random(wttest.WiredTigerTestCase):
# Close the connection so everything is forced to disk.
self.reopen_conn()
- self.session.truncate(uri, None, None, None)
+ ds.truncate(uri, None, None, None)
- cursor = self.session.open_cursor(uri, None, self.config)
+ cursor = ds.open_cursor(uri, None, self.config)
for i in range(1,10):
self.assertTrue(cursor.next(), wiredtiger.WT_NOTFOUND)