change sync to async for lockfile debugging

This commit is contained in:
Henry Oswald
2018-08-22 21:32:19 +01:00
parent 171ad0329d
commit e4d28addf9
2 changed files with 12 additions and 8 deletions

View File

@@ -10,6 +10,8 @@ describe "DockerLockManager", ->
@LockManager = SandboxedModule.require modulePath, requires:
"settings-sharelatex": {}
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub() }
"fs":
lstat:sinon.stub().callsArgWith(1)
"lockfile": @Lockfile = {}
@lockFile = "/local/compile/directory/.project-lock"