Skip to content

Commit 1a8071c

Browse files
committed
Use w=0 in gle test - work around SERVER-12474
GLE behavior is undefined after a write command so use the legacy wire protocol messages in this test.
1 parent cdaa711 commit 1a8071c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ def test_last_status(self):
329329
db.test.remove({})
330330
db.test.save({"i": 1})
331331

332-
db.test.update({"i": 1}, {"$set": {"i": 2}})
332+
db.test.update({"i": 1}, {"$set": {"i": 2}}, w=0)
333333
self.assertTrue(db.last_status()["updatedExisting"])
334334

335-
db.test.update({"i": 1}, {"$set": {"i": 500}})
335+
db.test.update({"i": 1}, {"$set": {"i": 500}}, w=0)
336336
self.assertFalse(db.last_status()["updatedExisting"])
337337

338338
def test_password_digest(self):

0 commit comments

Comments
 (0)