Skip to content

Commit 8deb94d

Browse files
committed
fix(matrix): surface sustained e2ee decryption failures
1 parent e7f4b99 commit 8deb94d

11 files changed

Lines changed: 1268 additions & 217 deletions

‎extensions/matrix/src/approval-auth.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// Matrix tests cover approval auth plugin behavior.
2-
import { describe, expect, it } from "vitest";
2+
import { beforeEach, describe, expect, it } from "vitest";
33
import { matrixApprovalAuth } from "./approval-auth.js";
4+
import { installMatrixTestRuntime } from "./test-runtime.js";
5+
6+
beforeEach(() => {
7+
installMatrixTestRuntime();
8+
});
49

510
describe("matrixApprovalAuth", () => {
611
it("normalizes Matrix user ids before authorizing", () => {

‎extensions/matrix/src/approval-native.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
// Matrix tests cover approval native plugin behavior.
22
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
3-
import { describe, expect, it } from "vitest";
3+
import { beforeEach, describe, expect, it } from "vitest";
44
import { matrixApprovalCapability } from "./approval-native.js";
5+
import { installMatrixTestRuntime } from "./test-runtime.js";
6+
7+
beforeEach(() => {
8+
installMatrixTestRuntime();
9+
});
510

611
function buildConfig(
712
overrides?: Partial<NonNullable<NonNullable<OpenClawConfig["channels"]>["matrix"]>>,

0 commit comments

Comments
 (0)