diff --git a/healthmanager/subscription_manager_test.go b/healthmanager/subscription_manager_test.go index 698a8664ef4..a98081f268e 100644 --- a/healthmanager/subscription_manager_test.go +++ b/healthmanager/subscription_manager_test.go @@ -106,8 +106,6 @@ func TestSubscriptionManager_MultipleEmitsCollapse(t *testing.T) { time.Sleep(100 * time.Millisecond) mu.Lock() - if received != 1 { - t.Errorf("Expected 1 notifications, but received %d", received) - } + require.Equalf(t, 1, received, "Expected 1 notifications, but received %d", received) mu.Unlock() }