0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 01:32:12 +01:00

test: fix the sleep time for SSE (#1575)

This commit is contained in:
Yusuke Wada 2023-10-16 08:40:10 +09:00 committed by GitHub
parent ec94acd909
commit 690765d2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ describe('SSE Streaming headers', () => {
while (id < maxIterations) {
const message = `It is ${id}`
await stream.writeSSE({ data: message, event: 'time-update', id: String(id++) })
await stream.sleep(1000)
await stream.sleep(100)
}
})
})