Skip to content

Commit

Permalink
test: added content-length test
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Jan 12, 2021
1 parent 19968ff commit 772888b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/monitor_routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func TestGetMonitor(t *testing.T) {

assert.Equal(t, http.StatusOK, res.StatusCode)
assert.Equal(t, "text/plain; charset=utf-8", res.Header.Get("Content-Type"))
assert.NotEmpty(t, res.Header.Get("Content-Length"))

t.Run("metrics", func(t *testing.T) {
parser := expfmt.TextParser{}
Expand Down

0 comments on commit 772888b

Please sign in to comment.