Skip to content

Commit

Permalink
Update test to inject context properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Karis committed Oct 16, 2019
1 parent 0beaafd commit bc37f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion propagation/http_trace_context_propagator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func TestInjectCorrelationContextToHTTPReq(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
req, _ := http.NewRequest("GET", "http://example.com", nil)
ctx := dctx.NewContext(context.Background())
ctx := dctx.WithMap(context.Background(), dctx.NewMap(dctx.MapUpdate{MultiKV: tt.kvs}))
propagator.Inject(ctx, req.Header)

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

0 comments on commit bc37f3d

Please sign in to comment.