Skip to content

Commit 61e4fbe

Browse files
committed
tests: fix test on Node.js 0.8
1 parent 7eeabef commit 61e4fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/compression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('compression()', function(){
140140
// UGH
141141
var server = createServer({ threshold: 0 }, function (req, res) {
142142
res.setHeader('Content-Type', 'text/plain')
143-
res.on('close', function () {
143+
res.once('close', function () {
144144
res.write('hello, ')
145145
res.end('world')
146146
done()

0 commit comments

Comments
 (0)