fix(virtualstream): Fix keep-alive loop handling and test cleanup

This commit is contained in:
2024-09-06 13:46:09 +02:00
parent f461f16bfd
commit 4d98915dbd
4 changed files with 14 additions and 3 deletions

View File

@@ -98,13 +98,13 @@ tap.test('should allow VirtualStreams', async () => {
const data = await generatedRequestingVS.fetchData();
const decodedData = new TextDecoder().decode(data);
expect(decodedData).toEqual('hello');
newRequestingVS.close();
// await newRequestingVS.close();
});
tap.test('should end the server', async (toolsArg) => {
await toolsArg.delayFor(1000);
await testServer.stop();
await tap.stopForcefully();
// await tap.stopForcefully();
});
export default tap.start();