Skip to content

Commit

Permalink
[FIX] unit test otlp endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Takashi <[email protected]>
  • Loading branch information
nicolastakashi committed Dec 20, 2024
1 parent fc5e612 commit 12dbf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/receive/handler_otlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestOTLPWriteHandler(t *testing.T) {
}()

for _, handler := range handlers {
req := httptest.NewRequest("POST", "/api/v1/receive", bytes.NewReader(buf))
req := httptest.NewRequest("POST", "/v1/metrics", bytes.NewReader(buf))

req.Header.Set("Content-Type", "application/x-protobuf")
req.Header.Set(handler.options.ReplicaHeader, "0")
Expand Down

0 comments on commit 12dbf04

Please sign in to comment.