Attempt to use unluck we get back from lock.
This commit is contained in:
parent
af0802df30
commit
2e67ae115e
|
@ -86,7 +86,7 @@ export async function startContainer(container: GenericContainer) {
|
|||
fs.writeFileSync(lockPath, "")
|
||||
}
|
||||
|
||||
await lockfile.lock(lockPath, {
|
||||
const unlock = await lockfile.lock(lockPath, {
|
||||
retries: 10,
|
||||
})
|
||||
|
||||
|
@ -94,7 +94,7 @@ export async function startContainer(container: GenericContainer) {
|
|||
try {
|
||||
startedContainer = await container.start()
|
||||
} finally {
|
||||
await lockfile.unlock(lockPath)
|
||||
await unlock()
|
||||
}
|
||||
|
||||
const info = testContainerUtils.getContainerById(startedContainer.getId())
|
||||
|
|
Loading…
Reference in New Issue