Skip to content

Commit

Permalink
fix missing nil
Browse files Browse the repository at this point in the history
  • Loading branch information
MadVikingGod committed Aug 1, 2024
1 parent 1749252 commit 3f304d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

func TestNewTraceRequest(t *testing.T) {
t.Setenv("OTEL_HTTP_CLIENT_COMPATIBILITY_MODE", "http/dup")
serv := NewHTTPServer()
serv := NewHTTPServer(nil)
want := func(req testServerReq) []attribute.KeyValue {
return []attribute.KeyValue{
attribute.String("http.request.method", "GET"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func TestV120RecordMetrics(t *testing.T) {
assert.ElementsMatch(t, want, server.responseBytesCounter.(*testInst).attributes)
assert.ElementsMatch(t, want, server.serverLatencyMeasure.(*testInst).attributes)
}

func TestV120ClientRequest(t *testing.T) {
body := strings.NewReader("Hello, world!")
url := "https://example.com:8888/foo/bar?stuff=morestuff"
Expand Down

0 comments on commit 3f304d0

Please sign in to comment.