Skip to content

Commit

Permalink
Add mock call in test
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Nov 18, 2024
1 parent a597da3 commit 2d62c8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/services/ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func TestIngest_LatestSyncedLedgerBehindRPC(t *testing.T) {
OldestLedgerCloseTime: int64(1),
}
mockRPCService.On("GetTransactions", int64(50), "", 50).Return(mockResult, nil).Once()
mockAppTracker.On("CaptureMessage", "ingestion service stale for over 1m0s").Maybe()

err = ingestService.Run(context.Background(), uint32(49), uint32(50))
require.NoError(t, err)
Expand Down

0 comments on commit 2d62c8b

Please sign in to comment.