()
| 86 | let completed = 0; |
| 87 | |
| 88 | const onComplete = function () { |
| 89 | completed++; |
| 90 | if (completed === 2) { |
| 91 | worker1.end(); |
| 92 | worker2.end(); |
| 93 | expect(new Date().getTime() - startTime).toBeLessThan(jobDelay * 3); |
| 94 | resolve(null); |
| 95 | } |
| 96 | }; |
| 97 | |
| 98 | worker1.on("success", onComplete); |
| 99 | worker2.on("success", onComplete); |
nothing calls this directly
no test coverage detected