mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
test: relax sandbox registry lock wait
This commit is contained in:
@@ -75,7 +75,11 @@ function normalizeSandboxRegistryEntry(entry: SandboxRegistryEntry): SandboxRegi
|
||||
}
|
||||
|
||||
async function withRegistryLock<T>(registryPath: string, fn: () => Promise<T>): Promise<T> {
|
||||
const lock = await acquireSessionWriteLock({ sessionFile: registryPath, allowReentrant: false });
|
||||
const lock = await acquireSessionWriteLock({
|
||||
sessionFile: registryPath,
|
||||
allowReentrant: false,
|
||||
timeoutMs: 60_000,
|
||||
});
|
||||
try {
|
||||
return await fn();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user