MCPcopy
hub / github.com/bugy/script-server / mockSocketClose

Function mockSocketClose

web-src/tests/unit/scriptExecutor_test.js:64–69  ·  view source on GitHub ↗
(socketCloseCode, status)

Source from the content-addressed store, hash-verified

62 });
63
64 async function mockSocketClose(socketCloseCode, status) {
65 await timeout(20);
66 mockExecutionStatus(123, status);
67 currentSocket.close({code: socketCloseCode});
68 await timeout(20);
69 }
70
71 describe('Test basic features', function () {
72 let store;

Callers 1

Calls 3

timeoutFunction · 0.90
mockExecutionStatusFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected