MCPcopy Index your code
hub / github.com/nodejs/node / cleanUp

Function cleanUp

test/sequential/test-tls-psk-client.js:51–57  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

49}));
50
51const cleanUp = (err) => {
52 clearTimeout(timeout);
53 if (err)
54 console.log('Failed:', err);
55 server.kill();
56 process.exitCode = err ? 1 : 0;
57};
58
59const timeout = setTimeout(() => cleanUp('Timed out'), 5000);
60

Callers 1

Calls 3

killMethod · 0.80
clearTimeoutFunction · 0.50
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…