Skip to content

Commit 29df784

Browse files
author
Luke Lovett
committed
PYTHON-989 - Fix find_one_and_write_concern test when run with authentication.
1 parent 0d27478 commit 29df784

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_collection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,9 @@ def test_find_one_and_write_concern(self):
20032003
# default WriteConcern.
20042004
c_default = db.get_collection('test', write_concern=WriteConcern())
20052005
results = listener.results
2006+
# Authenticate the client and throw out auth commands from the listener.
2007+
db.command('ismaster')
2008+
results.clear()
20062009
try:
20072010
if client_context.version.at_least(3, 1, 9, -1):
20082011
c_w0.find_and_modify(

0 commit comments

Comments
 (0)