wormchain: wormhole: Fix broken test
This commit is contained in:
parent
b655e5b19b
commit
524520c914
|
@ -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"),
|
||||||
|
|
Loading…
Reference in New Issue