mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 01:41:40 +00:00
test(gateway): align safe open error code
This commit is contained in:
@@ -415,7 +415,7 @@ describe("agents.create", () => {
|
||||
|
||||
it("does not persist config when IDENTITY.md append is rejected after preflight", async () => {
|
||||
mocks.appendFileWithinRoot.mockRejectedValueOnce(
|
||||
new SafeOpenError("path escapes workspace root", "path escapes workspace root"),
|
||||
new SafeOpenError("path-mismatch", "path escapes workspace root"),
|
||||
);
|
||||
|
||||
const { respond, promise } = makeCall("agents.create", {
|
||||
|
||||
Reference in New Issue
Block a user