From 0028ac38ed2572a5e3a9b18dd2886f8ed22e6084 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Tue, 2 Feb 2021 17:41:27 +0100 Subject: [PATCH] test/e2e: increase validator tolerances (#6037) --- test/e2e/tests/validator_test.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/test/e2e/tests/validator_test.go b/test/e2e/tests/validator_test.go index 247f2c586..847a8d388 100644 --- a/test/e2e/tests/validator_test.go +++ b/test/e2e/tests/validator_test.go @@ -77,11 +77,8 @@ func TestValidator_Propose(t *testing.T) { require.False(t, proposeCount == 0 && expectCount > 0, "node did not propose any blocks (expected %v)", expectCount) - if expectCount > 3 { + if expectCount > 5 { require.GreaterOrEqual(t, proposeCount, 3, "validator didn't propose even 3 blocks") - } else { - require.Equal(t, proposeCount, expectCount, "validator missed proposing blocks (proposed %v, expected %v)", - proposeCount, expectCount) } }) } @@ -120,11 +117,8 @@ func TestValidator_Sign(t *testing.T) { require.False(t, signCount == 0 && expectCount > 0, "validator did not sign any blocks (expected %v)", expectCount) - if expectCount > 3 { - require.GreaterOrEqual(t, signCount, 3, "validator didn't sign even 3 blocks") - } else { - require.Equal(t, signCount, expectCount, "validator missed signing blocks (signed %v, expected %v)", - signCount, expectCount) + if expectCount > 7 { + require.GreaterOrEqual(t, signCount, 3, "validator didn't sign even 3 blocks (expected %v)", expectCount) } }) }