diff --git a/test/parallel/test-worker-message-port-infinite-message-loop.js b/test/parallel/test-worker-message-port-infinite-message-loop.js index 327ba1d2be..d5924d9c3b 100644 --- a/test/parallel/test-worker-message-port-infinite-message-loop.js +++ b/test/parallel/test-worker-message-port-infinite-message-loop.js @@ -27,14 +27,3 @@ port2.postMessage(0); // This is part of the test -- the event loop should be available and not stall // out due to the recursive .postMessage() calls. setTimeout(common.mustCall(), 0); - -// Assert that the 'message' handler was actually called. -// -// We do not want to assert a specific call count, so common.mustCall cannot be -// used in the port1.on('message' callback directly. -process.once( - 'beforeExit', - common.mustCall(() => { - assert(count > 0, 'count should be greater than 0'); - }) -);