summaryrefslogtreecommitdiff
path: root/jstests/core/index4.js
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2014-12-18 14:50:28 -0500
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-01-09 18:40:56 -0500
commitf18c1a14b4aa78cce9ee6e7fa21448eb7b2da05f (patch)
tree09e5e7784cd223c2ca4238e2a8269e4382ccb488 /jstests/core/index4.js
parent81109be93d335a4a8a5bca64001c56c41640ba96 (diff)
downloadmongo-f18c1a14b4aa78cce9ee6e7fa21448eb7b2da05f.tar.gz
SERVER-16580 Remove deprecated system collection references in JS tests
Diffstat (limited to 'jstests/core/index4.js')
-rw-r--r--jstests/core/index4.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/index4.js b/jstests/core/index4.js
index 9dd731c83ee..ee8c59fa37c 100644
--- a/jstests/core/index4.js
+++ b/jstests/core/index4.js
@@ -20,7 +20,7 @@ t.save( { name : "clusterstock" ,
// this should fail, not allowed -- we confirm that.
t.ensureIndex( { instances : { pool : 1 } } );
-assert.eq( 0, db.system.indexes.find( {ns:"test.index4",name:{$ne:"_id_"}} ).count(), "no indexes should be here yet");
+assert.eq( 1, t.getIndexes().length, "no indexes other than _id should be here yet");
t.ensureIndex( { "instances.pool" : 1 } );