summaryrefslogtreecommitdiff
path: root/jstests/core/fts_partition1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/fts_partition1.js')
-rw-r--r--jstests/core/fts_partition1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/fts_partition1.js b/jstests/core/fts_partition1.js
index efc148da675..055f574baf1 100644
--- a/jstests/core/fts_partition1.js
+++ b/jstests/core/fts_partition1.js
@@ -13,7 +13,7 @@ t.insert({_id: 2, x: 1, y: "bar"});
t.insert({_id: 3, x: 2, y: "foo"});
t.insert({_id: 4, x: 2, y: "bar"});
-t.createIndex({x: 1, y: "text"});
+t.ensureIndex({x: 1, y: "text"});
assert.throws(function() {
const cursor = t.find({"$text": {"$search": "foo"}});