Fix resurrect timeout formula (#833)

* Fixes #827

* Updated test
This commit is contained in:
Tomas Della Vedova
2019-04-29 09:18:38 +02:00
committed by delvedor
parent 9bb2d237e4
commit ddb72d6e50
2 changed files with 8 additions and 18 deletions

View File

@ -74,7 +74,7 @@ test('Should execute the recurrect API with the ping strategy', t => {
})
q.add((q, done) => {
clock.tick(10)
clock.tick(1000 * 61)
client.info((err, result) => {
t.error(err)
done()
@ -133,7 +133,7 @@ test('Resurrect a node and handle 502/3/4 status code', t => {
})
q.add((q, done) => {
clock.tick(10)
clock.tick(1000 * 61)
client.info((err, result) => {
t.error(err)
done()
@ -141,7 +141,7 @@ test('Resurrect a node and handle 502/3/4 status code', t => {
})
q.add((q, done) => {
clock.tick(150000)
clock.tick(1000 * 10 * 60)
client.info((err, result) => {
t.error(err)
done()
@ -194,7 +194,7 @@ test('Should execute the recurrect API with the optimistic strategy', t => {
})
q.add((q, done) => {
clock.tick(10)
clock.tick(1000 * 61)
client.info((err, result) => {
t.error(err)
done()