()
| 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 | }); |
no test coverage detected