Skip to content

Commit

Permalink
Use new logger in TestFailIfBodySizeTooLarge
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed Nov 1, 2024
1 parent 2d225ab commit 2a3f154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prober/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ func TestFailIfBodySizeTooLarge(t *testing.T) {
testCTX, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
result := ProbeHTTP(testCTX, ts.URL,
config.Module{Timeout: time.Second, HTTP: config.HTTPProbe{IPProtocolFallback: true, BodySizeLimit: bodySizeLimit, FailIfBodyTooLarge: &failIfBodyTooLarge}}, registry, log.NewNopLogger())
config.Module{Timeout: time.Second, HTTP: config.HTTPProbe{IPProtocolFallback: true, BodySizeLimit: bodySizeLimit, FailIfBodyTooLarge: &failIfBodyTooLarge}}, registry, promslog.NewNopLogger())
if result && failIfBodyTooLarge {
t.Fatal("Fail if body size too large succeeded unexpectedly")
} else if !result && !failIfBodyTooLarge {
Expand Down

0 comments on commit 2a3f154

Please sign in to comment.