1
0
Fork 0
mirror of synced 2024-08-06 21:58:12 +12:00

Try the sync versions?

This commit is contained in:
Sam Rose 2024-06-11 15:38:25 +01:00
parent 2e67ae115e
commit eac6106b06
No known key found for this signature in database

View file

@ -86,7 +86,7 @@ export async function startContainer(container: GenericContainer) {
fs.writeFileSync(lockPath, "") fs.writeFileSync(lockPath, "")
} }
const unlock = await lockfile.lock(lockPath, { const unlock = lockfile.lockSync(lockPath, {
retries: 10, retries: 10,
}) })
@ -94,7 +94,7 @@ export async function startContainer(container: GenericContainer) {
try { try {
startedContainer = await container.start() startedContainer = await container.start()
} finally { } finally {
await unlock() unlock()
} }
const info = testContainerUtils.getContainerById(startedContainer.getId()) const info = testContainerUtils.getContainerById(startedContainer.getId())