Skip to content

Commit 6a0d854

Browse files
author
Luke Lovett
committed
Fix authentication error in test_authenticate_multiple for MongoDB 2.2 sharded.
1 parent c226b4f commit 6a0d854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def test_authenticate_multiple(self):
524524
# Admin read-only user should be able to query any db,
525525
# but not write.
526526
admin_db.authenticate('ro-admin', 'pass')
527-
self.assertEqual(0, other_db.test.count())
527+
self.assertEqual(None, other_db.test.find_one())
528528
self.assertRaises(OperationFailure,
529529
other_db.test.insert_one, {})
530530

0 commit comments

Comments
 (0)