test: relax sandbox registry lock wait

This commit is contained in:
Peter Steinberger
2026-04-10 16:24:09 +01:00
parent 2cf9ed782d
commit eec19d5929

View File

@@ -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 {