Skip to content

Commit 0027111

Browse files
committed
fix linter test
1 parent f89fc6a commit 0027111

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/pruning_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func TestGetPruningOptionsFromFlags(t *testing.T) {
4141
}
4242

4343
for _, tt := range tests {
44+
tt := tt
4445
t.Run(tt.name, func(j *testing.T) {
45-
tt := tt
4646
viper.Reset()
4747
tt.initParams()
4848
require.Equal(t, tt.expectedOptions, GetPruningOptionsFromFlags())

server/start_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ func TestPruningOptions(t *testing.T) {
8686
}
8787

8888
for _, tt := range tests {
89-
t.Run(tt.name, func(t *testing.T) {
90-
tt := tt
89+
tt := tt
9190

91+
t.Run(tt.name, func(t *testing.T) {
9292
viper.Reset()
9393
tt.paramInit()
9494

0 commit comments

Comments
 (0)