diff --git a/test/TestModules/TestSchemaProcessor.ts b/test/TestModules/TestSchemaProcessor.ts index a0ce531..adb4aee 100644 --- a/test/TestModules/TestSchemaProcessor.ts +++ b/test/TestModules/TestSchemaProcessor.ts @@ -129,13 +129,13 @@ export default class TestSchemaProcessor { const pgExists: boolean = !!pgResult.data.rows[0].exists; let msg: string = ''; - if (mySqlResult) { - msg += `Please, remove '${ (this.conversion)._mySqlDbName }' database from your MySQL server prior to running tests.\n\n`; + if (mySqlExists) { + msg += `Please, remove '${ (this.conversion)._mySqlDbName }' database from your MySQL server prior to running tests.\n`; } - if (pgResult) { - msg += `Please, remove '${ (this.conversion)._targetConString.database }.${ (this.conversion)._schema }' - schema from your PostgreSQL server prior to running tests.`; + if (pgExists) { + const schemaName: string = `'${ (this.conversion)._targetConString.database }.${ (this.conversion)._schema }'`; + msg += `Please, remove ${ schemaName } schema from your PostgreSQL server prior to running tests.`; } if (msg) {