From 86c2f1e0f0fc0df580b75868a96cfeac04643ed2 Mon Sep 17 00:00:00 2001 From: Aditya Vyas Date: Fri, 15 Nov 2024 17:40:09 -0500 Subject: [PATCH] Fix failing unittest - 4 --- internal/services/ingest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/ingest_test.go b/internal/services/ingest_test.go index e046c8e..7b347b2 100644 --- a/internal/services/ingest_test.go +++ b/internal/services/ingest_test.go @@ -328,8 +328,8 @@ func TestTrackRPCServiceHealth(t *testing.T) { defer cancel() // Mock both expected warning messages - mockAppTracker.On("CaptureMessage", "rpc service unhealthy for over 1m0s").Once() mockAppTracker.On("CaptureMessage", "ingestion service stale for over 1m0s").Maybe() + mockAppTracker.On("CaptureMessage", "rpc service unhealthy for over 1m0s").Once() // Set up RPC health check to consistently return error mockRPCService.On("GetHealth").Return(entities.RPCGetHealthResult{}, errors.New("rpc error"))