From 9c63b79a8d5c8d19663850f9d668a3581dea77d5 Mon Sep 17 00:00:00 2001 From: matt dannenberg Date: Fri, 10 Jul 2015 09:30:22 -0400 Subject: [PATCH] SERVER-19206 fix jstests/replsets/read_committed.js --- jstests/replsets/read_committed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jstests/replsets/read_committed.js b/jstests/replsets/read_committed.js index 1fae055253e..da2b83dde29 100644 --- a/jstests/replsets/read_committed.js +++ b/jstests/replsets/read_committed.js @@ -42,7 +42,7 @@ function doCommittedRead() { } // Do a write, wait for it to replicate, and ensure it is visible. -assert.writeOK(t.save({_id: 1, state: 0}, {writeConcern: {w: 2, wtimeout: 60*1000}})); +assert.writeOK(t.save({_id: 1, state: 0}, {writeConcern: {w: "majority", wtimeout: 60*1000}})); assert.eq(doDirtyRead(), 0); assert.eq(doCommittedRead(), 0); @@ -60,7 +60,7 @@ assert.eq(doCommittedRead(), 0); // Restart the node and ensure the committed view is updated. replTest.restart(slaveId); -db.getLastError(2, 60*1000); +db.getLastError("majority", 60*1000); assert.eq(doDirtyRead(), 1); assert.eq(doCommittedRead(), 1); }());