diff --git a/healthmanager/subscription_manager_test.go b/healthmanager/subscription_manager_test.go index e07b982e9f9..698a8664ef4 100644 --- a/healthmanager/subscription_manager_test.go +++ b/healthmanager/subscription_manager_test.go @@ -60,9 +60,7 @@ func TestSubscriptionManager(t *testing.T) { select { case _, ok := <-ch: - if ok { - t.Errorf("Unsubscribed channel received notification") - } + require.Falsef(t, ok, "Unsubscribed channel received notification") case <-time.After(100 * time.Millisecond): // Expected behavior: no notification should be received }