[test] Do not call `duplex.end()` prematurely
[test] Do not call `duplex.end()` prematurely

Keep the `WebSocket` connection open while the test is run.

Refs: https://github.com/nodejs/node/pull/32780

websockets/ws