spring cleanup (#5991)
* Make format * Fix golangci-lint warnings Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
co-authored by
Alexander Bezobchuk
parent
58a6c4c007
commit
aeee097b2f
@@ -17,7 +17,6 @@ import (
|
||||
func Test_runMigrateCmd(t *testing.T) {
|
||||
cmd := AddKeyCommand()
|
||||
assert.NotNil(t, cmd)
|
||||
mockIn, _, _ := tests.ApplyMockIO(cmd)
|
||||
|
||||
kbHome, kbCleanUp := tests.NewTestCaseDir(t)
|
||||
copy.Copy("testdata", kbHome)
|
||||
@@ -31,7 +30,7 @@ func Test_runMigrateCmd(t *testing.T) {
|
||||
|
||||
viper.Set(flags.FlagDryRun, true)
|
||||
cmd = MigrateCommand()
|
||||
mockIn, _, _ = tests.ApplyMockIO(cmd)
|
||||
mockIn, _, _ := tests.ApplyMockIO(cmd)
|
||||
mockIn.Reset("test1234\ntest1234\n")
|
||||
assert.NoError(t, runMigrateCmd(cmd, []string{}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user