Skip to content

test: do not race server.close with timeout

Refs: https://github.com/nodejs/node/issues/43680

This fails when server.close() manages to close the connection before the timeout has fired. Here is the original issue: https://github.com/nodejs/node/issues/33734 It is not about the behaviour when racing server.close() with the timeout - it is about the timeout not firing at all. I am removing the race condition as I don't think there should be any guarantees on which callback should fire first.

Merge request reports

Loading