wormchain: wormhole: Fix broken test

This commit is contained in:
Chirantan Ekbote 2022-08-25 12:02:21 +09:00 committed by Chirantan Ekbote
parent b655e5b19b
commit 524520c914
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package cli_test package cli_test
import ( import (
"encoding/hex"
"fmt" "fmt"
"strconv" "strconv"
"testing" "testing"
@ -57,14 +58,14 @@ func TestShowGuardianValidator(t *testing.T) {
}{ }{
{ {
desc: "found", desc: "found",
idGuardianKey: string(objs[0].GuardianKey), idGuardianKey: hex.EncodeToString(objs[0].GuardianKey),
args: common, args: common,
obj: objs[0], obj: objs[0],
}, },
{ {
desc: "not found", desc: "not found",
idGuardianKey: strconv.Itoa(100000), idGuardianKey: "0x100000",
args: common, args: common,
err: status.Error(codes.InvalidArgument, "not found"), err: status.Error(codes.InvalidArgument, "not found"),