summaryrefslogtreecommitdiff
path: root/jstests/core/inc2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/inc2.js')
-rw-r--r--jstests/core/inc2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/inc2.js b/jstests/core/inc2.js
index 6ff4842e254..debdfde82cb 100644
--- a/jstests/core/inc2.js
+++ b/jstests/core/inc2.js
@@ -17,7 +17,7 @@ assert.eq("1,2,3", order(), "A");
t.update({_id: 1}, {$inc: {x: 4}});
assert.eq("2,3,1", order(), "B");
-t.ensureIndex({x: 1});
+t.createIndex({x: 1});
assert.eq("2,3,1", order(), "C");
t.update({_id: 3}, {$inc: {x: 4}});