Skip to content

Commit 1512b95

Browse files
committed
Use new logger in TestFailIfBodySizeTooLarge
Signed-off-by: Justin Kromlinger <[email protected]>
1 parent 2d225ab commit 1512b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prober/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ func TestFailIfBodySizeTooLarge(t *testing.T) {
856856
testCTX, cancel := context.WithTimeout(context.Background(), 10*time.Second)
857857
defer cancel()
858858
result := ProbeHTTP(testCTX, ts.URL,
859-
config.Module{Timeout: time.Second, HTTP: config.HTTPProbe{IPProtocolFallback: true, BodySizeLimit: bodySizeLimit, FailIfBodyTooLarge: &failIfBodyTooLarge}}, registry, log.NewNopLogger())
859+
config.Module{Timeout: time.Second, HTTP: config.HTTPProbe{IPProtocolFallback: true, BodySizeLimit: bodySizeLimit, FailIfBodyTooLarge: &failIfBodyTooLarge}}, registry, promslog.NewNopLogger())
860860
if result && failIfBodyTooLarge {
861861
t.Fatal("Fail if body size too large succeeded unexpectedly")
862862
} else if !result && !failIfBodyTooLarge {

0 commit comments

Comments
 (0)