From 3769556fa4149f80d0f290806a320c5531b8c4fc Mon Sep 17 00:00:00 2001 From: Aditya Vyas Date: Mon, 13 Jan 2025 11:26:21 -0500 Subject: [PATCH] Remove Once() from mock --- internal/services/rpc_service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/rpc_service_test.go b/internal/services/rpc_service_test.go index b154803..3249e40 100644 --- a/internal/services/rpc_service_test.go +++ b/internal/services/rpc_service_test.go @@ -399,7 +399,7 @@ func TestTrackRPCServiceHealth_HealthyService(t *testing.T) { } }`))), } - mockHTTPClient.On("Post", "http://test-url", "application/json", mock.Anything).Return(mockResponse, nil).Once() + mockHTTPClient.On("Post", "http://test-url", "application/json", mock.Anything).Return(mockResponse, nil) // Get result from heartbeat channel select {