Fix mocha complaining about returning Promise-like object

This commit is contained in:
Alasdair Smith 2018-02-26 15:31:34 +00:00
parent bd7e4908a2
commit 3217a3fbf0

View file

@ -34,6 +34,7 @@ describe "ProjectStructureMongoLock", ->
namespace = ProjectEntityMongoUpdateHandler.LOCK_NAMESPACE
@lock_key = "lock:web:#{namespace}:#{project._id}"
LockManager._getLock @lock_key, namespace, done
return
after (done) ->
LockManager._releaseLock @lock_key, done