diff options
Diffstat (limited to 'jstests/disk/dbNoCreate.js')
-rw-r--r-- | jstests/disk/dbNoCreate.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/disk/dbNoCreate.js b/jstests/disk/dbNoCreate.js index f365e0730e9..f3498fcedb4 100644 --- a/jstests/disk/dbNoCreate.js +++ b/jstests/disk/dbNoCreate.js @@ -2,16 +2,16 @@ var baseName = "jstests_dbNoCreate"; var m = MongoRunner.runMongod({}); -var t = m.getDB( baseName ).t; +var t = m.getDB(baseName).t; -assert.eq( 0, t.find().toArray().length ); +assert.eq(0, t.find().toArray().length); t.remove({}); -t.update( {}, { a:1 } ); +t.update({}, {a: 1}); t.drop(); MongoRunner.stopMongod(m); -m = MongoRunner.runMongod({restart:true, cleanData:false, dbpath: m.dbpath}); -assert.eq( -1, - m.getDBNames().indexOf( baseName ), - "found " + baseName + " in " + tojson(m.getDBNames())); +m = MongoRunner.runMongod({restart: true, cleanData: false, dbpath: m.dbpath}); +assert.eq(-1, + m.getDBNames().indexOf(baseName), + "found " + baseName + " in " + tojson(m.getDBNames())); |