Try the sync versions?
This commit is contained in:
parent
2e67ae115e
commit
eac6106b06
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue