summaryrefslogtreecommitdiff
path: root/jstests/dur/a_quick.js
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-05-06 19:00:56 -0400
committerDavid Storch <david.storch@10gen.com>2014-05-06 19:00:56 -0400
commit72380726608df663a85bee24d69a20ed2ca8287d (patch)
tree735b7724ddc814fdf385d754bd7921975b5de491 /jstests/dur/a_quick.js
parent3061ab54eb2cc642a279becfca0b93f5e17db117 (diff)
downloadmongo-72380726608df663a85bee24d69a20ed2ca8287d.tar.gz
Revert "SERVER-13741 Migrate remaining tests to use write commands"
This reverts commit 87dc3ae516e1d12a632dc604710661e38ed7b3dd.
Diffstat (limited to 'jstests/dur/a_quick.js')
-rwxr-xr-xjstests/dur/a_quick.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/dur/a_quick.js b/jstests/dur/a_quick.js
index bbec8af6939..ab36f91327e 100755
--- a/jstests/dur/a_quick.js
+++ b/jstests/dur/a_quick.js
@@ -62,7 +62,8 @@ tst.log("start mongod without dur");
var conn = startMongodEmpty("--port", 30000, "--dbpath", path1, "--nodur");
tst.log("without dur work");
var d = conn.getDB("test");
-assert.writeOK(d.foo.insert({ _id: 123 }));
+d.foo.insert({ _id:123 });
+d.getLastError();
tst.log("stop without dur");
stopMongod(30000);
@@ -71,7 +72,8 @@ tst.log("start mongod with dur");
conn = startMongodEmpty("--port", 30001, "--dbpath", path2, "--dur", "--durOptions", 8);
tst.log("with dur work");
d = conn.getDB("test");
-assert.writeOK(d.foo.insert({ _id: 123 }));
+d.foo.insert({ _id: 123 });
+d.getLastError(); // wait
// 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