diff options
Diffstat (limited to 'jstests/replsets/replset3.js')
-rw-r--r-- | jstests/replsets/replset3.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/replset3.js b/jstests/replsets/replset3.js index ba08eac1cd0..4f97b816c8d 100644 --- a/jstests/replsets/replset3.js +++ b/jstests/replsets/replset3.js @@ -20,8 +20,7 @@ doTest = function (signal) { // Write some data to master
// NOTE: this test fails unless we write some data.
- master.getDB("foo").foo.save({ a: 1 });
- master.getDB("foo").runCommand({ getlasterror: 1, w: 3, wtimeout: 20000 });
+ master.getDB("foo").foo.insert({ a: 1 }, { writeConcern: { w: 3, wtimeout: 20000 }});
var phase = 1;
|