chore: fix all linting (#24101)
This commit is contained in:
@@ -24,7 +24,6 @@ func TestRandomAccounts(t *testing.T) {
|
||||
{"100-accounts", 100, 100},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got := simulation.RandomAccounts(r, tt.n)
|
||||
require.Equal(t, tt.want, len(got))
|
||||
@@ -65,8 +64,6 @@ func TestRandomFees(t *testing.T) {
|
||||
{"0 coins", sdk.NewCoins(sdk.NewInt64Coin("aaa", 10), sdk.NewInt64Coin("bbb", 5)), false, false},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := simulation.RandomFees(r, sdk.Context{}, tt.spendableCoins)
|
||||
if (err != nil) != tt.wantErr {
|
||||
|
||||
@@ -23,7 +23,6 @@ func TestRandSubsetCoins(t *testing.T) {
|
||||
{"seed=99", rand.New(rand.NewSource(99)), mustParseCoins("100stake,2testtoken")},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got := simulation.RandSubsetCoins(tt.r, tt.coins)
|
||||
gotStringRep := got.String()
|
||||
@@ -46,8 +45,6 @@ func TestRandStringOfLength(t *testing.T) {
|
||||
{"1_000_000-size", 1_000_000, 1_000_000},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got := simulation.RandStringOfLength(r, tt.n)
|
||||
require.Equal(t, tt.want, len(got))
|
||||
|
||||
Reference in New Issue
Block a user