summaryrefslogtreecommitdiff
path: root/jstests/core/apitest_dbcollection.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/apitest_dbcollection.js')
-rw-r--r--jstests/core/apitest_dbcollection.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/core/apitest_dbcollection.js b/jstests/core/apitest_dbcollection.js
index 1434ef3170c..6d405e8c716 100644
--- a/jstests/core/apitest_dbcollection.js
+++ b/jstests/core/apitest_dbcollection.js
@@ -193,10 +193,8 @@ assert(db.getCollection( "test_db" ).getIndexes().length == 0,24);
'indexDetails missing from ' + 'db.collection.stats(' + tojson(options) +
') result: ' + tojson(collectionStats));
// Currently, indexDetails is only supported with WiredTiger.
- var storageEngine = jsTest.options().storageEngine;
- if (storageEngine && storageEngine !== 'wiredTiger') {
- return;
- }
+ if (jsTest.options().storageEngine == undefined) { return; }
+ if (jsTest.options().storageEngine.toLowerCase() != "wiredtiger") { return; }
assert.eq(1, Object.keys(collectionStats.indexDetails).length,
'indexDetails must have exactly one entry');
assert(collectionStats.indexDetails[indexName],