Skip to content

Commit 3c9f2a2

Browse files
committed
increase time to wait for server startup
1 parent a3b644c commit 3c9f2a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

epicshop/mcp-dev/dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ async function waitForServerReady({ process: childProcess, textMatch, name }) {
114114
return new Promise((resolve, reject) => {
115115
const timeout = setTimeout(() => {
116116
process.kill()
117-
reject(new Error(`${name} failed to start within 10 seconds`))
118-
}, 10_000)
117+
reject(new Error(`${name} failed to start within 20 seconds`))
118+
}, 20_000)
119119

120120
function searchForMatch(data) {
121121
const str = data.toString()

exercises/02.start/01.solution/test/globalSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default async function setup(project: TestProject) {
3737
return new Promise<void>((resolve, reject) => {
3838
const timeout = setTimeout(() => {
3939
childProcess?.kill()
40-
reject(new Error(`${name} failed to start within 10 seconds`))
41-
}, 10_000)
40+
reject(new Error(`${name} failed to start within 20 seconds`))
41+
}, 20_000)
4242

4343
function searchForMatch(data: Buffer) {
4444
const str = data.toString()

exercises/99.finished/99.solution/test/globalSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export default async function setup(project: TestProject) {
3939
return new Promise<void>((resolve, reject) => {
4040
const timeout = setTimeout(() => {
4141
childProcess?.kill()
42-
reject(new Error(`${name} failed to start within 10 seconds`))
43-
}, 10_000)
42+
reject(new Error(`${name} failed to start within 20 seconds`))
43+
}, 20_000)
4444

4545
function searchForMatch(data: Buffer) {
4646
const str = data.toString()

0 commit comments

Comments
 (0)