Skip to content

Commit f3728c5

Browse files
author
Steven Karis
committed
Update test to inject context properly
1 parent c2ceea5 commit f3728c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

propagation/http_trace_context_propagator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func TestInjectCorrelationContextToHTTPReq(t *testing.T) {
449449
for _, tt := range tests {
450450
t.Run(tt.name, func(t *testing.T) {
451451
req, _ := http.NewRequest("GET", "http://example.com", nil)
452-
ctx := dctx.NewContext(context.Background())
452+
ctx := dctx.WithMap(context.Background(), dctx.NewMap(dctx.MapUpdate{MultiKV: tt.kvs}))
453453
propagator.Inject(ctx, req.Header)
454454

455455
gotHeader := req.Header.Get("Correlation-Context")

0 commit comments

Comments
 (0)