Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple service from global state #186

Merged
merged 21 commits into from
Nov 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make sure we destroy the HS
Half-Shot committed Oct 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1bdf6540c3477e1e213d186855f0a5021d57de24
3 changes: 2 additions & 1 deletion spec/util/e2e-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComplementHomeServer, createHS } from "./homerunner";
import { ComplementHomeServer, createHS, destroyHS } from "./homerunner";
import { MatrixClient, PowerLevelsEventContent } from "matrix-bot-sdk";
import dns from 'node:dns';
import { mkdtemp, rm } from "node:fs/promises";
@@ -181,6 +181,7 @@ export class E2ETestEnv {
public async tearDown(): Promise<void> {
await this.confBot.stop();
this.homeserver.users.forEach(u => u.client.stop());
await destroyHS(this.homeserver.id);
await rm(this.dataDir, { recursive: true, force: true })
}
}