Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Nov 3, 2023
1 parent b8efa95 commit cb51c0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package history
import (
"database/sql"
"fmt"
"github.com/guregu/null"
"testing"

"github.com/guregu/null"
"github.com/stellar/go/services/horizon/internal/db2"
"github.com/stellar/go/services/horizon/internal/test"
"github.com/stellar/go/xdr"
Expand Down Expand Up @@ -264,8 +264,10 @@ func TestFindClaimableBalancesByDestinationWithLimit(t *testing.T) {
test.ResetHorizonDB(t, tt.HorizonDB)
q := &Q{tt.HorizonSession()}

q.SessionInterface.BeginTx(tt.Ctx, &sql.TxOptions{})
defer q.Rollback()
tt.Assert.NoError(q.SessionInterface.BeginTx(tt.Ctx, &sql.TxOptions{}))
defer func() {
_ = q.SessionInterface.Rollback()
}()

assetIssuer := "GA25GQLHJU3LPEJXEIAXK23AWEA5GWDUGRSHTQHDFT6HXHVMRULSQJUJ"
asset1 := xdr.MustNewCreditAsset("ASSET1", assetIssuer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package history

import (
"context"
"github.com/stellar/go/support/db"

"github.com/stellar/go/support/db"
"github.com/stretchr/testify/mock"
)

Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/ingest/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func TestStateVerifier(t *testing.T) {
tt.Assert.NoError(changeProcessor.Commit(tt.Ctx))
tt.Assert.Equal(len(xdr.LedgerEntryTypeMap), len(coverage))

q.SessionInterface.Commit()
tt.Assert.NoError(q.SessionInterface.Commit())

q.UpdateLastLedgerIngest(tt.Ctx, checkpointLedger)

Expand Down

0 comments on commit cb51c0e

Please sign in to comment.