File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,7 @@ func TestDatabaseLoggingUnaryServerInterceptor(t *testing.T) {
78
78
}
79
79
}()
80
80
81
- ctx := context .Background ()
82
- conn , err := grpc .DialContext (ctx ,
83
- "bufnet" ,
81
+ conn , err := grpc .NewClient ("passthrough://bufnet" ,
84
82
grpc .WithContextDialer (func (ctx context.Context , s string ) (net.Conn , error ) {
85
83
return lis .Dial ()
86
84
}),
@@ -152,9 +150,7 @@ func TestDatabaseLoggingStreamServerInterceptors(t *testing.T) {
152
150
}
153
151
}()
154
152
155
- ctx := context .Background ()
156
- conn , err := grpc .DialContext (ctx ,
157
- "bufnet" ,
153
+ conn , err := grpc .NewClient ("passthrough://bufnet" ,
158
154
grpc .WithTransportCredentials (insecure .NewCredentials ()),
159
155
grpc .WithContextDialer (func (ctx context.Context , s string ) (net.Conn , error ) {
160
156
return lis .Dial ()
Original file line number Diff line number Diff line change @@ -51,9 +51,7 @@ func TestLoggerUnaryServerInterceptors(t *testing.T) {
51
51
}
52
52
}()
53
53
54
- ctx := context .Background ()
55
- conn , err := grpc .DialContext (ctx ,
56
- "bufnet" ,
54
+ conn , err := grpc .NewClient ("passthrough://bufnet" ,
57
55
grpc .WithContextDialer (func (ctx context.Context , s string ) (net.Conn , error ) {
58
56
return lis .Dial ()
59
57
}),
@@ -100,9 +98,7 @@ func TestLoggerStreamServerInterceptors(t *testing.T) {
100
98
}
101
99
}()
102
100
103
- ctx := context .Background ()
104
- conn , err := grpc .DialContext (ctx ,
105
- "bufnet" ,
101
+ conn , err := grpc .NewClient ("passthrough://bufnet" ,
106
102
grpc .WithTransportCredentials (insecure .NewCredentials ()),
107
103
grpc .WithContextDialer (func (ctx context.Context , s string ) (net.Conn , error ) {
108
104
return lis .Dial ()
You can’t perform that action at this time.
0 commit comments