fix(VirtualStream): Fix keepAlive flag handling in VirtualStream and added stream closure in tests

This commit is contained in:
2024-10-14 01:42:44 +02:00
parent f9b5c897cf
commit d38a225c78
4 changed files with 10 additions and 2 deletions

@@ -98,6 +98,8 @@ tap.test('should allow VirtualStreams', async () => {
const data = await generatedRequestingVS.fetchData();
const decodedData = new TextDecoder().decode(data);
expect(decodedData).toEqual('hello');
await newRequestingVS.close();
await newRespondingVS.close();
});
tap.test('should end the server', async (toolsArg) => {