From f6b6c3b035dc71f6ddb141375b33f284a071cd92 Mon Sep 17 00:00:00 2001 From: "Kim, JinSan" Date: Mon, 19 Apr 2021 17:55:19 +0900 Subject: [PATCH] fix: Test_runImportCmd() --- client/keys/import_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/keys/import_test.go b/client/keys/import_test.go index f958bbb7a7..ff70b1f807 100644 --- a/client/keys/import_test.go +++ b/client/keys/import_test.go @@ -2,7 +2,6 @@ package keys import ( "context" - "fmt" "io/ioutil" "path/filepath" "testing" @@ -10,7 +9,6 @@ import ( "github.com/stretchr/testify/require" "github.com/line/lbm-sdk/v2/client" - "github.com/line/lbm-sdk/v2/client/flags" "github.com/line/lbm-sdk/v2/crypto/keyring" "github.com/line/lbm-sdk/v2/testutil" sdk "github.com/line/lbm-sdk/v2/types" @@ -46,9 +44,6 @@ HbP+c6JmeJy9JXe2rbbF1QtCX1gLqGcDQPBXiCtFvP7/8wTZtVOPj8vREzhZ9ElO require.NoError(t, ioutil.WriteFile(keyfile, []byte(armoredKey), 0644)) mockIn.Reset("123456789\n") - cmd.SetArgs([]string{ - "keyname1", keyfile, - fmt.Sprintf("--%s=%s", flags.FlagKeyringBackend, keyring.BackendTest), - }) + cmd.SetArgs([]string{"keyname1", keyfile}) require.NoError(t, cmd.ExecuteContext(ctx)) }