try to use runner local ports for CI tests

This commit is contained in:
SPRINX0\prochazka
2025-01-08 17:01:56 +01:00
parent 3179f2d72c
commit 2501cb170f
3 changed files with 45 additions and 30 deletions

View File

@@ -10,16 +10,21 @@ function randomDbName(dialect) {
}
function extractConnection(engine) {
const { connection } = engine;
return {
...connection,
...engine.local,
};
if (process.env.LOCALTEST && engine.local) {
return {
...connection,
...engine.local,
};
}
// const { connection } = engine;
return connection;
// if (process.env.LOCALTEST && engine.local) {
// return {
// ...connection,
// ...engine.local,
// };
// }
// return connection;
}
async function connect(engine, database) {