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, "")
|
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())
|
||||||
|
|
Loading…
Reference in New Issue