mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
fix(matrix): align forged mention test with route precheck
This commit is contained in:
@@ -488,7 +488,7 @@ describe("matrix monitor handler pairing account scope", () => {
|
||||
expect(getMemberDisplayName).not.toHaveBeenCalledWith("!room:example.org", "@bot:example.org");
|
||||
});
|
||||
|
||||
it("drops forged metadata-only mentions before agent routing", async () => {
|
||||
it("drops forged metadata-only mentions before session recording", async () => {
|
||||
const { handler, recordInboundSession, resolveAgentRoute } = createMatrixHandlerTestHarness({
|
||||
isDirectMessage: false,
|
||||
mentionRegexes: [/@bot/i],
|
||||
@@ -505,7 +505,7 @@ describe("matrix monitor handler pairing account scope", () => {
|
||||
);
|
||||
|
||||
expect(recordInboundSession).not.toHaveBeenCalled();
|
||||
expect(resolveAgentRoute).not.toHaveBeenCalled();
|
||||
expect(resolveAgentRoute).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it("skips media downloads for unmentioned group media messages", async () => {
|
||||
|
||||
Reference in New Issue
Block a user