From 2a3f154d2919f83ebeca2662da186ff695137234 Mon Sep 17 00:00:00 2001 From: Justin Kromlinger Date: Fri, 1 Nov 2024 14:43:13 +0100 Subject: [PATCH] Use new logger in TestFailIfBodySizeTooLarge --- prober/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prober/http_test.go b/prober/http_test.go index dfd20744..1c95f506 100644 --- a/prober/http_test.go +++ b/prober/http_test.go @@ -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 {