diff options
Diffstat (limited to 'jstests/noPassthrough/hyphenated_database_name.js')
-rw-r--r-- | jstests/noPassthrough/hyphenated_database_name.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/jstests/noPassthrough/hyphenated_database_name.js b/jstests/noPassthrough/hyphenated_database_name.js index 6387e8f167f..0290e4444d9 100644 --- a/jstests/noPassthrough/hyphenated_database_name.js +++ b/jstests/noPassthrough/hyphenated_database_name.js @@ -4,21 +4,21 @@ * @tags: [requires_persistence] */ (function() { - "use strict"; - var isDirectoryPerDBSupported = jsTest.options().storageEngine == "wiredTiger" || - jsTest.options().storageEngine == "mmapv1" || !jsTest.options().storageEngine; - if (!isDirectoryPerDBSupported) - return; +"use strict"; +var isDirectoryPerDBSupported = jsTest.options().storageEngine == "wiredTiger" || + jsTest.options().storageEngine == "mmapv1" || !jsTest.options().storageEngine; +if (!isDirectoryPerDBSupported) + return; - const dbName = "test-hyphen"; - let conn = MongoRunner.runMongod({directoryperdb: ''}); +const dbName = "test-hyphen"; +let conn = MongoRunner.runMongod({directoryperdb: ''}); - conn.getDB(dbName).a.insert({x: 1}); - let res = conn.getDB(dbName).runCommand({dbStats: 1, scale: 1}); - jsTestLog("dbStats: " + tojson(res)); - assert(res.db == "test-hyphen"); - assert(res.fsUsedSize > 0); - assert(res.fsTotalSize > 0); +conn.getDB(dbName).a.insert({x: 1}); +let res = conn.getDB(dbName).runCommand({dbStats: 1, scale: 1}); +jsTestLog("dbStats: " + tojson(res)); +assert(res.db == "test-hyphen"); +assert(res.fsUsedSize > 0); +assert(res.fsTotalSize > 0); - MongoRunner.stopMongod(conn); +MongoRunner.stopMongod(conn); })(); |