Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Fuzz honest multi-instance to avoid intermittent failures #277

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 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 All @@ -103,7 +105,7 @@ func multiAgreementTest(t *testing.T, seed int, honestCount int, instanceCount u
honestCount,
// Generate a random EC chain for all participant that changes randomly at each
// instance.
sim.NewUniformECChainGenerator(rng.Uint64(), 1, 10), uniformOneStoragePower),
sim.NewUniformECChainGenerator(rng.Uint64(), 1, 4), uniformOneStoragePower),
)...)
require.NoError(t, err)
require.NoErrorf(t, sm.Run(instanceCount, maxRounds), "%s", sm.Describe())
Expand Down
Loading