Browse Source

test/e2e: tolerate up to 2/3 missed signatures for a validator (#5878)

E2E tests often fail due to fast sync stalls causing the validator to miss signing blocks. This increases the tolerance for missed signatures to 2/3 to allow validators to spend more time starting up.
pull/5881/head
Erik Grinaker 4 years ago
committed by GitHub
parent
commit
66ba12d9bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      test/e2e/tests/validator_test.go

+ 2
- 2
test/e2e/tests/validator_test.go View File

@ -115,8 +115,8 @@ func TestValidator_Sign(t *testing.T) {
} }
require.False(t, signCount == 0 && expectCount > 0, require.False(t, signCount == 0 && expectCount > 0,
"node did not sign any blocks (expected %v)", expectCount)
require.Less(t, float64(expectCount-signCount)/float64(expectCount), 0.5,
"validator did not sign any blocks (expected %v)", expectCount)
require.Less(t, float64(expectCount-signCount)/float64(expectCount), 0.33,
"validator missed signing too many blocks (signed %v out of %v)", signCount, expectCount) "validator missed signing too many blocks (signed %v out of %v)", signCount, expectCount)
}) })
} }


Loading…
Cancel
Save