forked from EduCraft/curriculum-project-hub
fix(ci): restore hub-check postgres wait deadline
This commit is contained in:
@@ -54,6 +54,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
node <<'NODE'
|
node <<'NODE'
|
||||||
const net = require("node:net");
|
const net = require("node:net");
|
||||||
|
const deadline = Date.now() + 60000;
|
||||||
const port = Number(process.env.HUB_CHECK_PG_PORT || "15432");
|
const port = Number(process.env.HUB_CHECK_PG_PORT || "15432");
|
||||||
function tryConnect() {
|
function tryConnect() {
|
||||||
const socket = net.createConnection({ host: "127.0.0.1", port });
|
const socket = net.createConnection({ host: "127.0.0.1", port });
|
||||||
|
|||||||
Reference in New Issue
Block a user