summaryrefslogtreecommitdiff
path: root/jstests/dur/dropdb.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/dur/dropdb.js')
-rw-r--r--jstests/dur/dropdb.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/dur/dropdb.js b/jstests/dur/dropdb.js
index 4fb94cc7d1e..54de6bdd7f2 100644
--- a/jstests/dur/dropdb.js
+++ b/jstests/dur/dropdb.js
@@ -62,10 +62,8 @@ function work() {
d.dropDatabase();
- d.foo.insert({ _id: 100 });
-
// assure writes applied in case we kill -9 on return from this function
- assert(d.runCommand({ getlasterror: 1, fsync: 1 }).ok, "getlasterror not ok");
+ assert.writeOK(d.foo.insert({ _id: 100 }, { writeConcern: { fsync: 1 }}));
}
function verify() {