diff --git a/test/server.ts b/test/server.ts index 2608e2dc..da6174e1 100644 --- a/test/server.ts +++ b/test/server.ts @@ -844,12 +844,12 @@ describe('server', function () { }) }) - it.skip('should send multiple messages for multiple writes', function (done) { + it('should send multiple messages for multiple writes', function (done) { doObserve() server.on('request', (req, res) => { res.write('hello') - setImmediate(function () { + originalSetImmediate(function () { res.end('world') }) }) @@ -943,7 +943,9 @@ describe('server', function () { res._counter = 4242 res.write('hello') - res.end('world') + originalSetImmediate(function () { + res.end('world') + }) }) // the first one is an ack