Skip to content

Commit 6a79e72

Browse files
committed
fix orchestrator
1 parent 3a0f18d commit 6a79e72

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const createJestConfig = nextJest({
1111
const jestConfig = createJestConfig({
1212
moduleDirectories: ['node_modules', '<rootDir>'],
1313
setupFiles: ['dotenv/config'],
14-
testTimeout: 60000
14+
testTimeout: 30000
1515
});
1616

1717
module.exports = jestConfig;

tests/orchestrator.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ async function waitForAllServices() {
1111

1212
async function fetchStatusPage() {
1313
const response = await fetch("http://localhost:3000/api/v1/status");
14-
const data = await response.json();
15-
if (response.status !== 200) {
14+
15+
if (!response.ok) {
1616
throw new Error("Service is not ready");
1717
}
18-
return data;
18+
19+
return false;
1920
}
2021
}
2122
}

0 commit comments

Comments
 (0)