Skip to content

Commit d58cd1a

Browse files
author
Michael Carey
committed
Adding test updates
1 parent c80e0ce commit d58cd1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

xray/grpc_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ func (t testCase) isTestForSuccessResponse() bool {
106106

107107
func (t testCase) getExpectedURL() string {
108108
if t.isTestForSuccessResponse() {
109-
return "grpc://bufnet/mwitkow.testproto.TestService/Ping"
109+
return "grpc://bufnet/testing.testpb.v1.TestService/Ping"
110110
}
111-
return "grpc://bufnet/mwitkow.testproto.TestService/PingError"
111+
return "grpc://bufnet/testing.testpb.v1.TestService/PingError"
112112
}
113113

114114
func (t testCase) getExpectedContentLength() int {
@@ -219,8 +219,8 @@ func TestGrpcUnaryClientInterceptor(t *testing.T) {
219219

220220
var subseg *Segment
221221
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)
224224
})
225225
t.Run("custom namer", func(t *testing.T) {
226226
lis := newGrpcServer(
@@ -249,7 +249,7 @@ func TestGrpcUnaryClientInterceptor(t *testing.T) {
249249
var subseg *Segment
250250
assert.NoError(t, json.Unmarshal(seg.Subsegments[0], &subseg))
251251
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)
253253
})
254254
}
255255

@@ -359,7 +359,7 @@ func TestUnaryServerInterceptor(t *testing.T) {
359359
assert.NoError(t, err)
360360
segment, err := td.Recv()
361361
assert.NoError(t, err)
362-
assert.Equal(t, "mwitkow.testproto.TestService", segment.Name)
362+
assert.Equal(t, "testing.testpb.v1.TestService", segment.Name)
363363
})
364364

365365
t.Run("chained interceptor", func(t *testing.T) {

0 commit comments

Comments
 (0)