Skip to content

Commit 65776fe

Browse files
committed
fix: add keep alive mechanism for failing test
1 parent 94a4727 commit 65776fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/dev_server.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ test.group('DevServer', () => {
408408

409409
await fs.create(
410410
'bin/server.ts',
411-
`process.send({ isAdonisJS: true, environment: 'web', port: process.env.PORT, host: 'localhost' })`
411+
`
412+
process.send({ isAdonisJS: true, environment: 'web', port: process.env.PORT, host: 'localhost' })
413+
const keepAlive = setInterval(() => {}, 5000)
414+
`
412415
)
413416
await fs.create('.env', 'PORT=3340')
414417

@@ -461,6 +464,8 @@ test.group('DevServer', () => {
461464
await sleep(1000)
462465
const logs = devServer.ui.logger.getLogs()
463466

467+
console.log(logs)
468+
464469
const indexGenerationLogs = logs.filter(({ message }) =>
465470
message.includes('.adonisjs/server/controllers.ts')
466471
)

0 commit comments

Comments
 (0)