Skip to content

Commit 13e6c47

Browse files
committed
fix macos test failure by following pattern set in #4496
1 parent 5cf144d commit 13e6c47

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/fetch/encoding.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,14 @@ describe('content-encoding chain limit', () => {
101101

102102
async function setupChainServer (t) {
103103
const server = createServer({ noDelay: true }, (req, res) => {
104+
res.socket.setNoDelay(true)
104105
const encodingCount = parseInt(req.headers['x-encoding-count'] || '1', 10)
105106
const encodings = Array(encodingCount).fill('identity').join(', ')
106107
res.writeHead(200, {
107108
'Content-Encoding': encodings,
108109
'Content-Type': 'text/plain'
109110
})
111+
res.flushHeaders()
110112
res.end('test')
111113
})
112114
await once(server.listen(0), 'listening')

0 commit comments

Comments
 (0)