From 0a50e3d6b91cd81de4fccbc6b75bd9e5d8cee107 Mon Sep 17 00:00:00 2001 From: Tobias Guggenmos Date: Thu, 12 Dec 2024 16:53:23 +0100 Subject: [PATCH] Fix SSL Log Test Signed-off-by: Tobias Guggenmos --- prober/http_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prober/http_test.go b/prober/http_test.go index 16f6101e..2d28d4ff 100644 --- a/prober/http_test.go +++ b/prober/http_test.go @@ -925,7 +925,9 @@ func TestFailIfNotSSLLogMsg(t *testing.T) { testCTX, cancel := context.WithTimeout(context.Background(), Timeout) defer cancel() - result := ProbeHTTP(testCTX, tc.URL, tc.Config, registry, slog.New(&recorder)) + logger := slog.New(&recorder) + result := ProbeHTTP(testCTX, tc.URL, tc.Config, registry, logger) + result.log(logger, 1) if result.success != tc.Success { t.Fatalf("Expected success=%v, got=%v", tc.Success, result) }