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