mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
test(plugin-sdk): stabilize file lock retry budget
This commit is contained in:
@@ -42,9 +42,6 @@ describe("acquireFileLock", () => {
|
||||
JSON.stringify({ pid: process.pid, createdAt: new Date().toISOString() }, null, 2),
|
||||
"utf8",
|
||||
);
|
||||
setTimeout(() => {
|
||||
void fs.rm(lockPath, { force: true });
|
||||
}, 50);
|
||||
|
||||
await expect(acquireFileLock(filePath, options)).rejects.toSatisfy((error) => {
|
||||
expect(error).toMatchObject({
|
||||
|
||||
Reference in New Issue
Block a user