summaryrefslogtreecommitdiff
path: root/jstests/core/fts_index.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-14 13:52:59 +0000
committerevergreen <evergreen@mongodb.com>2019-08-14 13:52:59 +0000
commit39c3a5d77b976e131d37476f2e7255d6058f5093 (patch)
tree01cc28719f215b17196ec913f475cd8efda9b37d /jstests/core/fts_index.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/core/fts_index.js')
-rw-r--r--jstests/core/fts_index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/fts_index.js b/jstests/core/fts_index.js
index a1b47dad127..1a567668629 100644
--- a/jstests/core/fts_index.js
+++ b/jstests/core/fts_index.js
@@ -104,7 +104,7 @@ coll.drop();
// Can insert documents with valid language_override into text-indexed collection.
assert.commandWorked(coll.ensureIndex({a: "text"}));
coll.insert({a: ""});
-assert.writeOK(coll.insert({a: "", language: "spanish"}));
+assert.commandWorked(coll.insert({a: "", language: "spanish"}));
coll.drop();
// Can't insert documents with invalid language_override into text-indexed collection.