summaryrefslogtreecommitdiff
path: root/jstests/dur/a_quick.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/dur/a_quick.js')
-rwxr-xr-xjstests/dur/a_quick.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/dur/a_quick.js b/jstests/dur/a_quick.js
index ab36f91327e..bbec8af6939 100755
--- a/jstests/dur/a_quick.js
+++ b/jstests/dur/a_quick.js
@@ -62,8 +62,7 @@ tst.log("start mongod without dur");
var conn = startMongodEmpty("--port", 30000, "--dbpath", path1, "--nodur");
tst.log("without dur work");
var d = conn.getDB("test");
-d.foo.insert({ _id:123 });
-d.getLastError();
+assert.writeOK(d.foo.insert({ _id: 123 }));
tst.log("stop without dur");
stopMongod(30000);
@@ -72,8 +71,7 @@ tst.log("start mongod with dur");
conn = startMongodEmpty("--port", 30001, "--dbpath", path2, "--dur", "--durOptions", 8);
tst.log("with dur work");
d = conn.getDB("test");
-d.foo.insert({ _id: 123 });
-d.getLastError(); // wait
+assert.writeOK(d.foo.insert({ _id: 123 }));
// we could actually do getlasterror fsync:1 now, but maybe this is agood
// as it will assure that commits happen on a timely basis. a bunch of the other dur/*js