Skip to content

Commit

Permalink
Investigate sensitivity to latency in multi instance tests (#190)
Browse files Browse the repository at this point in the history
Assert that when latency seed is changed the tests passes eventually. In
this case, it looks like the change in latency results in few additional
rounds for the test to pass; 21 to be precise.

Increase the max rounds to 30 in order to avoid intermittent errors
during dev work that might change latency seeds.

Closes #189
  • Loading branch information
masih authored May 3, 2024
1 parent 33cbe6a commit fea57b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/constants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
tipSetGeneratorSeed = 0x264803e715714f95

latencyAsync = 100 * time.Millisecond
maxRounds = 18
maxRounds = 30
asyncInterations = 5000
EcEpochDuration = 30 * time.Second
EcStabilisationDelay = 3 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion test/multi_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestMultiAsyncAgreement(t *testing.T) {
honestCount := repetition + 3
tsg := sim.NewTipSetGenerator(tipSetGeneratorSeed)
baseChain := generateECChain(t, tsg)
sm, err := sim.NewSimulation(asyncOptions(t, 1413,
sm, err := sim.NewSimulation(asyncOptions(t, 1414,
sim.WithHonestParticipantCount(honestCount),
sim.WithTipSetGenerator(tsg),
sim.WithBaseChain(&baseChain))...)
Expand Down

0 comments on commit fea57b0

Please sign in to comment.