Skip to content

Commit

Permalink
style(validator_set_test.go): rename variables for minimum and maximu…
Browse files Browse the repository at this point in the history
…m values to improve readability and consistency in the test code
  • Loading branch information
samcm committed Dec 12, 2024
1 parent f0888d8 commit 0c46c12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/relaymonitor/registrations/validator_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ func TestValidatorSetWalker(t *testing.T) {

walker.Update(validators)

min := walker.Min()
max := walker.Max()
if min != 75 {
t.Errorf("Expected min 75, got %d", min)
mi := walker.Min()
ma := walker.Max()
if mi != 75 {
t.Errorf("Expected min 75, got %d", mi)
}
if max != 102 { // Should include remainder
t.Errorf("Expected max 102, got %d", max)
if ma != 102 { // Should include remainder
t.Errorf("Expected max 102, got %d", ma)
}
})

Expand Down

0 comments on commit 0c46c12

Please sign in to comment.