From 34ebbdc66e20b1c95e4923ed00fc16d8a0f21473 Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Wed, 30 Oct 2019 21:23:04 +0300 Subject: [PATCH] Fixed threshold test typo --- tests/test/changeThreshold.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test/changeThreshold.js b/tests/test/changeThreshold.js index 0d3baaf..eb65ec7 100644 --- a/tests/test/changeThreshold.js +++ b/tests/test/changeThreshold.js @@ -46,11 +46,10 @@ module.exports = newThreshold => { assert.deepStrictEqual(info.nextThreshold, initialInfo.threshold, 'Next threshold is not set correctly') await controller2.voteChangeThreshold(newThreshold) - info = await waitPromise(controller1.getInfo, info => info.nextValidators.length === nextValidators.length) + info = await waitPromise(controller1.getInfo, info => info.nextThreshold === newThreshold) assert.deepStrictEqual(info.validators, initialInfo.validators, 'Validators are not set correctly') assert.deepStrictEqual(info.nextValidators, initialInfo.validators, 'Next validators are not set correctly') assert.deepStrictEqual(info.threshold, initialInfo.threshold, 'Threshold not set correctly') - assert.deepStrictEqual(info.nextThreshold, newThreshold, 'Next threshold is not set correctly') await controller3.voteChangeThreshold(newThreshold) await delay(5000)