mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: tighten sandbox session line assertion
This commit is contained in:
@@ -323,7 +323,7 @@ describe("sandbox/tool-policy", () => {
|
||||
});
|
||||
|
||||
const sessionLine = message?.split("\n").find((line) => line.startsWith("Session: "));
|
||||
expect(sessionLine).toEqual(expect.stringContaining("Session: "));
|
||||
expect(sessionLine).toBe("Session: agent:…\\n12345");
|
||||
expect(sessionLine).not.toContain(sessionKey);
|
||||
expect(sessionLine).toContain("\\n");
|
||||
expect(message).toContain("openclaw sandbox explain --agent main");
|
||||
|
||||
Reference in New Issue
Block a user