Skip to content

Commit dad1ec7

Browse files
committed
improve test coverage
1 parent fd659f6 commit dad1ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/inst-api/instrumenter/instrumenter_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ func TestStartAndEndWithOptions(t *testing.T) {
249249
dsInstrumenter := builder.BuildPropagatingToDownstreamInstrumenter(func(request testRequest) propagation.TextMapCarrier {
250250
return &prop
251251
}, &myTextMapProp{})
252-
dsInstrumenter.StartAndEnd(ctx, testRequest{}, testResponse{}, nil, time.Now(), time.Now())
252+
dsInstrumenter.StartAndEndWithOptions(ctx, testRequest{}, testResponse{}, nil, time.Now(), time.Now(), nil, nil)
253253
upInstrumenter := builder.BuildPropagatingFromUpstreamInstrumenter(func(request testRequest) propagation.TextMapCarrier {
254254
return &prop
255255
}, &myTextMapProp{})
256-
upInstrumenter.StartAndEnd(ctx, testRequest{}, testResponse{}, nil, time.Now(), time.Now())
256+
upInstrumenter.StartAndEndWithOptions(ctx, testRequest{}, testResponse{}, nil, time.Now(), time.Now(), nil, nil)
257257
// no panic here
258258
}

0 commit comments

Comments
 (0)