Skip to content

Commit

Permalink
fix TestInvokeHostFnDetailsInPaymentOperations
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Aug 5, 2024
1 parent 7819376 commit 394610e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions services/horizon/internal/actions/operation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"time"

"github.com/guregu/null"
"github.com/stretchr/testify/assert"

"github.com/stellar/go/ingest"
"github.com/stellar/go/protocols/horizon/operations"
"github.com/stellar/go/services/horizon/internal/db2/history"
Expand All @@ -19,7 +21,6 @@ import (
supportProblem "github.com/stellar/go/support/render/problem"
"github.com/stellar/go/toid"
"github.com/stellar/go/xdr"
"github.com/stretchr/testify/assert"
)

func TestInvokeHostFnDetailsInPaymentOperations(t *testing.T) {
Expand All @@ -28,8 +29,14 @@ func TestInvokeHostFnDetailsInPaymentOperations(t *testing.T) {
test.ResetHorizonDB(t, tt.HorizonDB)

q := &history.Q{tt.HorizonSession()}
handler := GetOperationsHandler{OnlyPayments: true}

handler := GetOperationsHandler{OnlyPayments: true,
LedgerState: &ledger.State{},
}
handler.LedgerState.SetHorizonStatus(ledger.HorizonStatus{
HistoryLatest: 56,
HistoryElder: 56,
ExpHistoryLatest: 56,
})
txIndex := int32(1)
sequence := int32(56)
txID := toid.New(sequence, txIndex, 0).ToInt64()
Expand Down

0 comments on commit 394610e

Please sign in to comment.