Skip to content

Commit 9204713

Browse files
committed
Fix: Remove deprecated grpc DialContext
1 parent 765220d commit 9204713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/proto/resource.pb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func TestProtoFilterRequest(t *testing.T) {
143143

144144
func TestFilter(t *testing.T) {
145145
ctx := context.Background()
146-
conn, err := grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithTransportCredentials(insecure.NewCredentials()))
146+
conn, err := grpc.NewClient("passthrough://bufnet", grpc.WithContextDialer(bufDialer), grpc.WithTransportCredentials(insecure.NewCredentials()))
147147
if err != nil {
148148
t.Fatalf("Failed to dial bufnet: %v", err)
149149
}

0 commit comments

Comments
 (0)