|
|
@ -6,7 +6,8 @@ import ( |
|
|
|
"testing" |
|
|
|
"time" |
|
|
|
|
|
|
|
grpc "google.golang.org/grpc" |
|
|
|
"google.golang.org/grpc" |
|
|
|
"google.golang.org/grpc/credentials/insecure" |
|
|
|
"google.golang.org/grpc/test/bufconn" |
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
@ -51,7 +52,10 @@ func TestSignerClient_GetPubKey(t *testing.T) { |
|
|
|
srv, dialer := dialer(mockPV, logger) |
|
|
|
defer srv.Stop() |
|
|
|
|
|
|
|
conn, err := grpc.DialContext(ctx, "", grpc.WithInsecure(), grpc.WithContextDialer(dialer)) |
|
|
|
conn, err := grpc.DialContext(ctx, "", |
|
|
|
grpc.WithTransportCredentials(insecure.NewCredentials()), |
|
|
|
grpc.WithContextDialer(dialer), |
|
|
|
) |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
@ -73,7 +77,10 @@ func TestSignerClient_SignVote(t *testing.T) { |
|
|
|
srv, dialer := dialer(mockPV, logger) |
|
|
|
defer srv.Stop() |
|
|
|
|
|
|
|
conn, err := grpc.DialContext(ctx, "", grpc.WithInsecure(), grpc.WithContextDialer(dialer)) |
|
|
|
conn, err := grpc.DialContext(ctx, "", |
|
|
|
grpc.WithTransportCredentials(insecure.NewCredentials()), |
|
|
|
grpc.WithContextDialer(dialer), |
|
|
|
) |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
@ -126,7 +133,10 @@ func TestSignerClient_SignProposal(t *testing.T) { |
|
|
|
srv, dialer := dialer(mockPV, logger) |
|
|
|
defer srv.Stop() |
|
|
|
|
|
|
|
conn, err := grpc.DialContext(ctx, "", grpc.WithInsecure(), grpc.WithContextDialer(dialer)) |
|
|
|
conn, err := grpc.DialContext(ctx, "", |
|
|
|
grpc.WithTransportCredentials(insecure.NewCredentials()), |
|
|
|
grpc.WithContextDialer(dialer), |
|
|
|
) |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
|