mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
try to use runner local ports for CI tests
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user