Skip to content

Commit

Permalink
Fix SSL Log Test
Browse files Browse the repository at this point in the history
  • Loading branch information
slrtbtfs committed Dec 12, 2024
1 parent 1665b01 commit ea56b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prober/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ea56b66

Please sign in to comment.