Skip to content

Commit 5bffd3e

Browse files
committed
address failure
1 parent cd33798 commit 5bffd3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ async def test_explain_csot(self):
368368
client = await self.async_rs_or_single_client(event_listeners=[listener])
369369

370370
# Create a collection, referred to as collection, with the namespace explain-test.collection.
371-
collection = client["explain-test"]["collection"]
371+
collection = await client["explain-test"].create_collection("collection")
372372

373373
# Run an explained find on collection. The find will have the query predicate { name: 'john doe' }. Specify a maxTimeMS value of 2000ms for the explain.
374374
with pymongo.timeout(2.0):

test/test_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def test_explain_csot(self):
360360
client = self.rs_or_single_client(event_listeners=[listener])
361361

362362
# Create a collection, referred to as collection, with the namespace explain-test.collection.
363-
collection = client["explain-test"]["collection"]
363+
collection = client["explain-test"].create_collection("collection")
364364

365365
# Run an explained find on collection. The find will have the query predicate { name: 'john doe' }. Specify a maxTimeMS value of 2000ms for the explain.
366366
with pymongo.timeout(2.0):

0 commit comments

Comments
 (0)