()
| 350 | } |
| 351 | |
| 352 | async tearDown() { |
| 353 | if (this.pool) { |
| 354 | this.closePool(); |
| 355 | } |
| 356 | const connectionsToDestroy = Array.from(this.orphans).concat( |
| 357 | Array.from(this.connections.values()) |
| 358 | ); |
| 359 | for (const conn of connectionsToDestroy) { |
| 360 | conn.destroy(); |
| 361 | } |
| 362 | this.poolEventsEventEmitter.removeAllListeners(); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | async function runCmapTest(test: CmapTest, threadContext: ThreadContext) { |
no test coverage detected