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:
parent
ec94acd909
commit
690765d2a4
@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user