Skip to content

Commit

Permalink
stop the client after using it
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 10, 2024
1 parent d7c8c61 commit b3a7445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/messageIsMediaProtectionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ describe("Test: Message is media", function () {
await client.setUserPowerLevel(mjolnirId, testRoom, 100);
});
this.afterEach(async function () {
await client.stop();
await getFirstReaction(client, this.mjolnir.managementRoomId, "✅", async () => {
return await client.sendMessage(this.mjolnir.managementRoomId, {
msgtype: "m.text",
body: `!mjolnir disable MessageIsMediaProtection`,
});
});
await client.stop();
});

function delay(ms: number) {
Expand Down

0 comments on commit b3a7445

Please sign in to comment.