Skip to content

Commit 4ab163b

Browse files
committed
PMM-12219 fix linter.
1 parent 6761c32 commit 4ab163b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

main_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,12 @@ func TestBuildURI(t *testing.T) {
228228
},
229229
}
230230
for _, tc := range tests {
231-
newUri := buildURI(tc.origin, tc.newUser, tc.newPassword, logrus.New())
232-
// t.Logf("Origin: %s", tc.origin)
233-
// t.Logf("Expect: %s", tc.expect)
234-
// t.Logf("Result: %s", newUri)
235-
assert.Equal(t, tc.expect, newUri)
231+
t.Run(tc.situation, func(t *testing.T) {
232+
newURI := buildURI(tc.origin, tc.newUser, tc.newPassword, logrus.New())
233+
// t.Logf("Origin: %s", tc.origin)
234+
// t.Logf("Expect: %s", tc.expect)
235+
// t.Logf("Result: %s", newURI)
236+
assert.Equal(t, tc.expect, newURI)
237+
})
236238
}
237239
}

0 commit comments

Comments
 (0)