From 00439b1d6f2f5d9eb438729ba48c536c706e0098 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 21 Jun 2024 12:02:35 +0200 Subject: [PATCH] test --- test/server.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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