Skip to content

Commit

Permalink
Fix failing unittest - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Nov 15, 2024
1 parent a14f10a commit 86c2f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 86c2f1e

Please sign in to comment.