Skip to content

Commit 4bc7c15

Browse files
committed
chore: update test
1 parent e1dbea0 commit 4bc7c15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/400.command.dev.test.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,14 @@ test('should support functions with streaming responses', async (t) => {
469469
const chunks = []
470470
const response = got.stream(`${server.url}/.netlify/functions/streamer`)
471471

472+
let lastTimestamp = 0
473+
472474
response.on('data', (chunk) => {
475+
const now = Date.now()
476+
477+
t.true(now > lastTimestamp)
478+
479+
lastTimestamp = now
473480
chunks.push(chunk.toString())
474481
})
475482

0 commit comments

Comments
 (0)