MCPcopy
hub / github.com/hapijs/hapi / check

Function check

test/request.js:641–651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639 await new Promise((resolve) => {
640
641 const check = function () {
642
643 if (total) {
644 createConnection();
645 setTimeout(check, 100);
646 }
647 else {
648 expect(disconnected).to.equal(4); // Each connection sends two HTTP requests
649 resolve();
650 }
651 };
652
653 check();
654 });

Callers 1

request.jsFile · 0.85

Calls 1

createConnectionFunction · 0.85

Tested by

no test coverage detected