Skip to content

Commit

Permalink
PYTHON-989 - Fix find_one_and_write_concern test when run with authen…
Browse files Browse the repository at this point in the history
…tication.
  • Loading branch information
Luke Lovett committed Nov 19, 2015
1 parent 0d27478 commit 29df784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_collection.py
Expand Up @@ -2003,6 +2003,9 @@ def test_find_one_and_write_concern(self):
# default WriteConcern.
c_default = db.get_collection('test', write_concern=WriteConcern())
results = listener.results
# Authenticate the client and throw out auth commands from the listener.
db.command('ismaster')
results.clear()
try:
if client_context.version.at_least(3, 1, 9, -1):
c_w0.find_and_modify(
Expand Down

0 comments on commit 29df784

Please sign in to comment.