mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
test: accept archive race refusal variants
This commit is contained in:
@@ -281,8 +281,8 @@ describe("archive utils", () => {
|
||||
timeoutMs: ARCHIVE_EXTRACT_TIMEOUT_MS,
|
||||
}),
|
||||
).rejects.toMatchObject({
|
||||
code: "hardlink",
|
||||
} satisfies Partial<FsSafeError>);
|
||||
code: expect.stringMatching(/^(destination-symlink-traversal|hardlink)$/),
|
||||
} satisfies Partial<ArchiveSecurityError | FsSafeError>);
|
||||
} finally {
|
||||
lstatSpy.mockRestore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user