From 3f3edeec07ebef2d34e3eb3bf91cb540183ac3b1 Mon Sep 17 00:00:00 2001 From: Andrea Gottardo Date: Fri, 12 Jul 2024 09:05:27 -0700 Subject: [PATCH] health: drop unnecessary logging in TestSetUnhealthyWithTimeToVisible (#12795) Fixes tailscale/tailscale#12794 We were printing some leftover debug logs within a callback function that would be executed after the test completion, causing the test to fail. This change drops the log calls to address the issue. Signed-off-by: Andrea Gottardo --- health/health_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/health/health_test.go b/health/health_test.go index 65a5d79ce..8107c1cf0 100644 --- a/health/health_test.go +++ b/health/health_test.go @@ -186,10 +186,8 @@ func TestSetUnhealthyWithTimeToVisible(t *testing.T) { } if us != nil { - t.Logf("watcherFunc was called with an UnhealthyState: %v", us) becameUnhealthy <- struct{}{} } else { - t.Logf("watcherFunc was called with an healthy state: %v", us) becameHealthy <- struct{}{} } }