fix(core): Updated dependencies and added close method to VirtualStream

This commit is contained in:
2024-09-06 13:02:04 +02:00
parent 360c8a618b
commit 6beadb8cfc
6 changed files with 681 additions and 574 deletions

View File

@ -98,12 +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();
});
tap.test('should end the server', async (toolsArg) => {
await toolsArg.delayFor(1000);
await testServer.stop();
setTimeout(() => process.exit(0), 100);
await tap.stopForcefully();
});
export default tap.start();