()
| 577 | } |
| 578 | |
| 579 | async cleanup(): Promise<void> { |
| 580 | await this.failPoints.disableFailPoints(); |
| 581 | |
| 582 | trace('closeCursors'); |
| 583 | for (const [, cursor] of this.mapOf('cursor')) { |
| 584 | await cursor.close(); |
| 585 | } |
| 586 | |
| 587 | trace('closeStreams'); |
| 588 | for (const [, stream] of this.mapOf('stream')) { |
| 589 | await stream.close(); |
| 590 | } |
| 591 | |
| 592 | trace('endSessions'); |
| 593 | for (const [, session] of this.mapOf('session')) { |
| 594 | await session.endSession({ force: true }); |
| 595 | } |
| 596 | |
| 597 | trace('closeClient'); |
| 598 | for (const [, client] of this.mapOf('client')) { |
| 599 | await client.close(); |
| 600 | } |
| 601 | |
| 602 | trace('clear'); |
| 603 | this.clear(); |
| 604 | } |
| 605 | |
| 606 | static async createEntities( |
| 607 | config: TestConfiguration, |
no test coverage detected