Skip to content

Commit

Permalink
Kill tests in a specific order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Apr 11, 2024
1 parent ba4385e commit 79d1543
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/util/e2e-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ export class IrcBridgeE2ETest {
}

public async tearDown(): Promise<void> {
await Promise.allSettled([
this.ircBridge?.kill(),
this.ircTest.tearDown(),
this.homeserver?.users.map(c => c.client.stop()),
this.homeserver && destroyHS(this.homeserver.id),
this.dropDatabase(),
]);
// This is specifically ordered this way so that
// it's closed in dependency order.
await this.ircBridge?.kill();
await this.ircTest.tearDown();
await this.homeserver?.users.map(c => c.client.stop());
await (this.homeserver && destroyHS(this.homeserver.id));
await this.pool?.close();
await this.dropDatabase();
if (this.traceLog) {
this.traceLog.close();
}
Expand Down

0 comments on commit 79d1543

Please sign in to comment.