Skip to content

Commit 23d9902

Browse files
committed
chore: re-add wait for start
1 parent 4219684 commit 23d9902

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ jobs:
161161
- uses: actions/setup-node@v6
162162
with:
163163
node-version: current
164-
- uses: supercharge/mongodb-github-action@v1
165164
- run: npm ci
166165
- run: npm run build:node
167166
- run: npm run build:schemas --workspace=@nmshd/runtime

packages/runtime/test/consumption/openid4vc.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ beforeAll(async () => {
2222
"Content-Type": "application/json" // eslint-disable-line @typescript-eslint/naming-convention
2323
}
2424
});
25+
26+
let healthCheckResult = await axiosInstance.get("/health");
27+
while (healthCheckResult.status !== 200) {
28+
await new Promise((resolve) => setTimeout(resolve, 1000));
29+
healthCheckResult = await axiosInstance.get("/health");
30+
}
2531
}, 120000);
2632

2733
afterAll(async () => {

0 commit comments

Comments
 (0)