Skip to content

Commit

Permalink
Fuzz honest multi-instance with incremental network sizes
Browse files Browse the repository at this point in the history
`FuzzHonestMultiInstance_AsyncAgreement` intermittently fails on CI,
most likely due to taking too long to complete a test.

To avoid intermittent failures:
* Decrease the instance count to 3K
* change the honest multi instance tests to cover incremental network
  sizes, up to 4
* add additional static corpus that failed the fuzz test

Fixes #251
  • Loading branch information
masih committed May 24, 2024
1 parent add8260 commit e41ecee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/multi_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ func FuzzHonestMultiInstance_SyncAgreement(f *testing.F) {

func FuzzHonestMultiInstance_AsyncAgreement(f *testing.F) {
const (
instanceCount = 4000
honestCount = 5
instanceCount = 5000
honestCount = 4
)
f.Add(-7)
f.Add(31)
f.Add(33)
f.Fuzz(func(t *testing.T, seed int) {
multiAgreementTest(t, seed, honestCount, instanceCount, maxRounds*2, asyncOptions(seed)...)
})
Expand Down

0 comments on commit e41ecee

Please sign in to comment.