Skip to content

Commit

Permalink
Wait a bit before connecting client
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Mar 13, 2024
1 parent bfb19f4 commit e77d7af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ test('server', async (t) => {
})
.listen(n)

const client = new Pipe(n)
client.end('hello pipe')
setTimeout(() => {
const client = new Pipe(n)
client.end('hello pipe')
}, 100)

await lc

Expand Down

0 comments on commit e77d7af

Please sign in to comment.