Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Nov 15, 2024
1 parent 9119641 commit 65c5a74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,9 @@ func TestIngest_LatestSyncedLedgerBehindRPC(t *testing.T) {
}

func TestTrackRPCServiceHealth(t *testing.T) {
mockAppTracker := &apptracker.MockAppTracker{}

t.Run("healthy_rpc_service", func(t *testing.T) {
mockRPCService := &RPCServiceMock{}
mockAppTracker := &apptracker.MockAppTracker{}
heartbeat := make(chan entities.RPCGetHealthResult, 1)
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
Expand Down Expand Up @@ -324,6 +323,7 @@ func TestTrackRPCServiceHealth(t *testing.T) {

t.Run("unhealthy_rpc_service", func(t *testing.T) {
mockRPCService := &RPCServiceMock{}
mockAppTracker := &apptracker.MockAppTracker{}
heartbeat := make(chan entities.RPCGetHealthResult, 1)
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
Expand All @@ -340,6 +340,7 @@ func TestTrackRPCServiceHealth(t *testing.T) {

t.Run("context_cancelled", func(t *testing.T) {
mockRPCService := &RPCServiceMock{}
mockAppTracker := &apptracker.MockAppTracker{}
heartbeat := make(chan entities.RPCGetHealthResult, 1)
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
Expand Down

0 comments on commit 65c5a74

Please sign in to comment.