Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
2011aad committed Mar 14, 2024
1 parent ccc6df0 commit 06d4920
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tracing/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func TestMetricsExample(t *testing.T) {
require.NoError(t, err)
assert.NotNil(t, body)

// test client returns error
_, _, err = c.Get(context.Background(), nil, "http://localhost:39887/ping?foo=bar")
assert.NotNil(t, err)

// diff metrics
assert.NoError(t, testutil.GatherAndCompare(
registry, "testdata/hertz_request_metrics.txt",
Expand Down

0 comments on commit 06d4920

Please sign in to comment.