blob: 785d7473f26b226bb0dd8208598386a32f5366a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var baseName = "jstests_dbNoCreate";
var m = MongoRunner.runMongod({});
var t = m.getDB(baseName).t;
assert.eq(0, t.find().toArray().length);
t.remove({});
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()));
MongoRunner.stopMongod(m);
|