mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 13:05:17 +00:00
testifylint: enable more rules (#8024)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -813,7 +813,7 @@ func TestSanitizeName(t *testing.T) {
|
||||
for _, tc := range tests {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
sanitizedName := sanitizeName(tc.pluginName)
|
||||
assert.Equal(t, sanitizedName, tc.expectedName)
|
||||
assert.Equal(t, tc.expectedName, sanitizedName)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ func TestNewClientBuilder(t *testing.T) {
|
||||
logger := test.NewLogger()
|
||||
logLevel := logrus.InfoLevel
|
||||
cb := newClientBuilder("velero", logger, logLevel)
|
||||
assert.Equal(t, cb.commandName, "velero")
|
||||
assert.Equal(t, "velero", cb.commandName)
|
||||
assert.Equal(t, []string{"--log-level", "info"}, cb.commandArgs)
|
||||
assert.Equal(t, newLogrusAdapter(logger, logLevel), cb.pluginLogger)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user