Fix flaky test (#1158)

* Fix flaky test

* Fix #1154
This commit is contained in:
Tomas Della Vedova
2020-04-14 14:39:53 +02:00
committed by delvedor
parent a9e68110b5
commit 6ff1db20c4
4 changed files with 100 additions and 26 deletions

View File

@ -49,8 +49,7 @@ test('Should execute the recurrect API with the ping strategy', t => {
})
q.add((q, done) => {
cluster.kill('node0')
setTimeout(done, 100)
cluster.kill('node0', done)
})
q.add((q, done) => {
@ -173,8 +172,7 @@ test('Should execute the recurrect API with the optimistic strategy', t => {
})
q.add((q, done) => {
cluster.kill('node0')
setTimeout(done, 100)
cluster.kill('node0', done)
})
q.add((q, done) => {