Skip to content

Commit

Permalink
fix client test getting stuck issue discussed in spdy-http2#367 (comm…
Browse files Browse the repository at this point in the history
  • Loading branch information
beenotung committed Dec 12, 2022
1 parent 57035a5 commit 7d32a3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/client-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ describe('SPDY Client', function () {
server.close(next)

function next () {
// flush the pipe to avoid the GET and POST request tests getting stuck
process.stdout.write('')
if (--waiting === 0) {
done()
}
Expand Down

0 comments on commit 7d32a3e

Please sign in to comment.