Skip to content

Commit cbbc07d

Browse files
authored
Merge pull request #3 from sei-protocol/tony-chen-insecure-fix-2
Fix insecure dependencies in tests
2 parents 3c7814d + 4ef8c03 commit cbbc07d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

abci/example/example_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"github.com/stretchr/testify/require"
1313

1414
"google.golang.org/grpc"
15-
"google.golang.org/grpc/credentials/insecure"
1615

1716
"github.com/tendermint/tendermint/libs/log"
1817
tmnet "github.com/tendermint/tendermint/libs/net"
@@ -116,7 +115,7 @@ func testGRPCSync(ctx context.Context, t *testing.T, logger log.Logger, app type
116115

117116
// Connect to the socket
118117
conn, err := grpc.Dial(socket,
119-
grpc.WithTransportCredentials(insecure.NewCredentials()),
118+
grpc.WithInsecure(),
120119
grpc.WithContextDialer(dialerFunc),
121120
)
122121
require.NoError(t, err, "Error dialing GRPC server")

privval/grpc/client_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"time"
88

99
"google.golang.org/grpc"
10-
"google.golang.org/grpc/credentials/insecure"
1110
"google.golang.org/grpc/test/bufconn"
1211

1312
"github.com/stretchr/testify/assert"
@@ -51,7 +50,7 @@ func TestSignerClient_GetPubKey(t *testing.T) {
5150
defer srv.Stop()
5251

5352
conn, err := grpc.DialContext(ctx, "",
54-
grpc.WithTransportCredentials(insecure.NewCredentials()),
53+
grpc.WithInsecure(),
5554
grpc.WithContextDialer(dialer),
5655
)
5756
require.NoError(t, err)
@@ -75,7 +74,7 @@ func TestSignerClient_SignVote(t *testing.T) {
7574
defer srv.Stop()
7675

7776
conn, err := grpc.DialContext(ctx, "",
78-
grpc.WithTransportCredentials(insecure.NewCredentials()),
77+
grpc.WithInsecure(),
7978
grpc.WithContextDialer(dialer),
8079
)
8180
require.NoError(t, err)
@@ -130,7 +129,7 @@ func TestSignerClient_SignProposal(t *testing.T) {
130129
defer srv.Stop()
131130

132131
conn, err := grpc.DialContext(ctx, "",
133-
grpc.WithTransportCredentials(insecure.NewCredentials()),
132+
grpc.WithInsecure(),
134133
grpc.WithContextDialer(dialer),
135134
)
136135
require.NoError(t, err)

0 commit comments

Comments
 (0)