Skip to content

Commit 2cafc86

Browse files
author
Mike Dirolf
committed
use capped collection for tailable test
1 parent 3f2f300 commit 2cafc86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_cursor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ def set_coll():
557557
def test_tailable(self):
558558
db = self.db
559559
db.drop_collection("test")
560+
db.create_collection("test", {"capped": True, "size": 1000})
560561

561562
cursor = db.test.find(tailable=True)
562563

@@ -582,6 +583,7 @@ def test_tailable(self):
582583
self.assertEqual(1, count)
583584

584585
self.assertEqual(3, db.test.count())
586+
db.drop_collection("test")
585587

586588
def test_distinct(self):
587589
if not version.at_least(self.db.connection, (1, 1, 3, 1)):

0 commit comments

Comments
 (0)