added _runsInTestMode class attribute

This commit is contained in:
Anatoly 2018-01-31 01:28:26 +02:00
parent ca06437c1c
commit 00ef9cd60d
2 changed files with 3 additions and 1 deletions

View file

@ -62,6 +62,7 @@ module.exports = class Conversion {
? +this._config.max_db_connection_pool_size
: 10;
this._runsInTestMode = false;
this._maxDbConnectionPoolSize = this._maxDbConnectionPoolSize > 0 ? this._maxDbConnectionPoolSize : 10;
this._loaderMaxOldSpaceSize = this._config.loader_max_old_space_size;
this._loaderMaxOldSpaceSize = this.isIntNumeric(this._loaderMaxOldSpaceSize) ? this._loaderMaxOldSpaceSize : 'DEFAULT';

View file

@ -292,7 +292,8 @@ module.exports = class TestSchemaProcessor {
.then(config => this._app.readExtraConfig(config, baseDir))
.then(this._app.initializeConversion)
.then(conversion => {
this._conversion = conversion;
this._conversion = conversion;
this._conversion._runsInTestMode = true;
return Promise.resolve(conversion);
})
.then(this.createTestSourceDb.bind(this))