Skip to content

Commit

Permalink
Fixes test failing due to mocha done weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
owenniblock committed Jun 1, 2020
1 parent 2a64c77 commit db28f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/etcd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ describe('Etcd', function () {
delete config.lock
})

it('should create and store and lock with custom TTL', function (done) {
it('should create and store and lock with custom TTL', function () {
config.lockTtl = 1
const l1 = etcd.lockRestart(config)
l1.lock().then(
return l1.lock().then(
() => {
return l1.unlock()
}
).then(done)
)
})
})

Expand Down

0 comments on commit db28f46

Please sign in to comment.