1
0
Fork 0
mirror of synced 2024-07-13 10:15:49 +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, "")
}
const unlock = await lockfile.lock(lockPath, {
const unlock = lockfile.lockSync(lockPath, {
retries: 10,
})
@ -94,7 +94,7 @@ export async function startContainer(container: GenericContainer) {
try {
startedContainer = await container.start()
} finally {
await unlock()
unlock()
}
const info = testContainerUtils.getContainerById(startedContainer.getId())