From c517f4aaf0f73cbdc938b91843cbfaeebca84a6c Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Wed, 8 Aug 2018 05:01:22 +0000 Subject: [PATCH] accept range compare --- contracts/validator/validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/validator/validator_test.go b/contracts/validator/validator_test.go index f20cb26d58..c00df0514b 100644 --- a/contracts/validator/validator_test.go +++ b/contracts/validator/validator_test.go @@ -152,7 +152,7 @@ func TestRewardBalance(t *testing.T) { afterReward = new(big.Int).Add(afterReward, value) } - if totalReward.Int64()+1 < afterReward.Int64() || totalReward.Int64()-1 > afterReward.Int64() { + if totalReward.Int64()+5 < afterReward.Int64() || totalReward.Int64()-5 > afterReward.Int64() { callOpts := new(bind.CallOpts) voters, err := baseValidator.GetVoters(callOpts, acc3Addr) if err != nil {