Skip to content

Commit 961e81a

Browse files
committed
tests: update expectations
1 parent da78a54 commit 961e81a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/lint/lintersdb/validator_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ func TestValidator_validatePresets_error(t *testing.T) {
217217
}
218218
}
219219

220-
func TestValidator_alternativeNames(t *testing.T) {
220+
func TestValidator_alternativeNamesDeprecation(t *testing.T) {
221221
t.Setenv(logutils.EnvTestRun, "0")
222222

223223
log := logutils.NewMockLog().
224-
OnWarnf("The linter name %q is deprecated. It has been renamed to: %s.", "vet", "govet").
225-
OnWarnf("The linter name %q is deprecated. It has been renamed to: %s.", "vetshadow", "govet").
226-
OnWarnf("The linter name %q is deprecated. It has been renamed to: %s.", "logrlint", "loggercheck").
227-
OnWarnf("The linter name %q is deprecated. It has been split into: %s.", "megacheck", "gosimple, staticcheck, unused").
228-
OnWarnf("The linter name %q is deprecated. It has been renamed to: %s.", "gas", "gosec")
224+
OnWarnf("The name %q is deprecated. The linter has been renamed to: %s.", "vet", "govet").
225+
OnWarnf("The name %q is deprecated. The linter has been renamed to: %s.", "vetshadow", "govet").
226+
OnWarnf("The name %q is deprecated. The linter has been renamed to: %s.", "logrlint", "loggercheck").
227+
OnWarnf("The linter named %q is deprecated. It has been split into: %s.", "megacheck", "gosimple, staticcheck, unused").
228+
OnWarnf("The name %q is deprecated. The linter has been renamed to: %s.", "gas", "gosec")
229229

230230
m, err := NewManager(log, nil, NewLinterBuilder())
231231
require.NoError(t, err)

0 commit comments

Comments
 (0)