mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 16:29:51 +01:00
dont create indices after every test
This commit is contained in:
@@ -87,6 +87,9 @@ before(function (done) {
|
||||
function (next) {
|
||||
db.init(next);
|
||||
},
|
||||
function (next) {
|
||||
db.createIndices(next);
|
||||
},
|
||||
function (next) {
|
||||
setupMockDefaults(next);
|
||||
},
|
||||
@@ -146,9 +149,6 @@ function setupMockDefaults(callback) {
|
||||
function (next) {
|
||||
db.emptydb(next);
|
||||
},
|
||||
function (next) {
|
||||
db.createIndices(next);
|
||||
},
|
||||
function (next) {
|
||||
winston.info('test_database flushed');
|
||||
setupDefaultConfigs(meta, next);
|
||||
|
||||
Reference in New Issue
Block a user