@@ -106,9 +106,9 @@ func (t testCase) isTestForSuccessResponse() bool {
106
106
107
107
func (t testCase ) getExpectedURL () string {
108
108
if t .isTestForSuccessResponse () {
109
- return "grpc://bufnet/mwitkow.testproto .TestService/Ping"
109
+ return "grpc://bufnet/testing.testpb.v1 .TestService/Ping"
110
110
}
111
- return "grpc://bufnet/mwitkow.testproto .TestService/PingError"
111
+ return "grpc://bufnet/testing.testpb.v1 .TestService/PingError"
112
112
}
113
113
114
114
func (t testCase ) getExpectedContentLength () int {
@@ -219,8 +219,8 @@ func TestGrpcUnaryClientInterceptor(t *testing.T) {
219
219
220
220
var subseg * Segment
221
221
assert .NoError (t , json .Unmarshal (seg .Subsegments [0 ], & subseg ))
222
- assert .Equal (t , "mwitkow.testproto .TestService" , subseg .Name )
223
- assert .Equal (t , "grpc://bufnet/mwitkow.testproto .TestService/Ping" , subseg .HTTP .Request .URL )
222
+ assert .Equal (t , "testing.testpb.v1 .TestService" , subseg .Name )
223
+ assert .Equal (t , "grpc://bufnet/testing.testpb.v1 .TestService/Ping" , subseg .HTTP .Request .URL )
224
224
})
225
225
t .Run ("custom namer" , func (t * testing.T ) {
226
226
lis := newGrpcServer (
@@ -249,7 +249,7 @@ func TestGrpcUnaryClientInterceptor(t *testing.T) {
249
249
var subseg * Segment
250
250
assert .NoError (t , json .Unmarshal (seg .Subsegments [0 ], & subseg ))
251
251
assert .Equal (t , "custom" , subseg .Name )
252
- assert .Equal (t , "grpc://bufnet/mwitkow.testproto .TestService/Ping" , subseg .HTTP .Request .URL )
252
+ assert .Equal (t , "grpc://bufnet/testing.testpb.v1 .TestService/Ping" , subseg .HTTP .Request .URL )
253
253
})
254
254
}
255
255
@@ -359,7 +359,7 @@ func TestUnaryServerInterceptor(t *testing.T) {
359
359
assert .NoError (t , err )
360
360
segment , err := td .Recv ()
361
361
assert .NoError (t , err )
362
- assert .Equal (t , "mwitkow.testproto .TestService" , segment .Name )
362
+ assert .Equal (t , "testing.testpb.v1 .TestService" , segment .Name )
363
363
})
364
364
365
365
t .Run ("chained interceptor" , func (t * testing.T ) {
0 commit comments