Skip to content

Commit

Permalink
this pr fixes the existing golangci-lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Dec 24, 2023
1 parent ac2e689 commit 5e0cc74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions x/distribution/simulation/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestRandomizedGenState1(t *testing.T) {
}

for _, tt := range tests {
tt := tt
require.Panicsf(t, func() { simulation.RandomizedGenState(&tt.simState) }, tt.panicMsg)
}
}
1 change: 1 addition & 0 deletions x/slashing/simulation/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func TestRandomizedGenState1(t *testing.T) {
}

for _, tt := range tests {
tt := tt
require.Panicsf(t, func() { simulation.RandomizedGenState(&tt.simState) }, tt.panicMsg)
}
}
3 changes: 1 addition & 2 deletions x/staking/keeper/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ func TestingUpdateValidator(keeper Keeper, ctx sdk.Context, validator types.Vali
if bytes.Equal(valAddr, validator.GetOperator()) {
if deleted {
panic("found duplicate power index key")
} else {
deleted = true
}
deleted = true

store.Delete(iterator.Key())
}
Expand Down
1 change: 1 addition & 0 deletions x/staking/simulation/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func TestRandomizedGenState1(t *testing.T) {
}

for _, tt := range tests {
tt := tt
require.Panicsf(t, func() { simulation.RandomizedGenState(&tt.simState) }, tt.panicMsg)
}
}

0 comments on commit 5e0cc74

Please sign in to comment.