summaryrefslogtreecommitdiff
path: root/jstests/core/index4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index4.js')
-rw-r--r--jstests/core/index4.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/index4.js b/jstests/core/index4.js
index 37ebce75a9c..179bcdd9726 100644
--- a/jstests/core/index4.js
+++ b/jstests/core/index4.js
@@ -14,10 +14,10 @@ t.save({name: "alleyinsider", instances: [{pool: "prod1"}, {pool: "dev1"}]});
t.save({name: "clusterstock", instances: [{pool: "dev1"}]});
// this should fail, not allowed -- we confirm that.
-t.ensureIndex({instances: {pool: 1}});
+t.createIndex({instances: {pool: 1}});
assert.eq(1, t.getIndexes().length, "no indexes other than _id should be here yet");
-t.ensureIndex({"instances.pool": 1});
+t.createIndex({"instances.pool": 1});
sleep(10);