From 4f27821546b09c07286fe8ea849184aee03b2c3f Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Mon, 2 Dec 2024 10:39:39 +0400 Subject: [PATCH] Update healthmanager/subscription_manager_test.go Co-authored-by: Igor Sirotin --- healthmanager/subscription_manager_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() }