Skip to content

Commit

Permalink
fix failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Sep 13, 2023
1 parent 711194d commit 7d39d5c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions services/horizon/internal/txsub/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ func (suite *SystemTestSuite) TestSubmit_NotFoundError() {
suite.db.On("TransactionByHash", suite.ctx, mock.Anything, suite.successTx.Transaction.TransactionHash).
Return(sql.ErrNoRows).Once()
suite.db.On("NoRows", sql.ErrNoRows).Return(true).Twice()
suite.db.On("GetSequenceNumbers", suite.ctx, []string{suite.unmuxedSource.Address()}).
Return(map[string]uint64{suite.unmuxedSource.Address(): 0}, nil).
Once()

suite.submitter.R.Err = errors.New("busted for some reason")
r := <-suite.system.Submit(
Expand Down Expand Up @@ -341,9 +338,6 @@ func (suite *SystemTestSuite) TestSubmit_OpenTransactionList() {
suite.db.On("TransactionByHash", suite.ctx, mock.Anything, suite.successTx.Transaction.TransactionHash).
Return(sql.ErrNoRows).Once()
suite.db.On("NoRows", sql.ErrNoRows).Return(true).Twice()
suite.db.On("GetSequenceNumbers", suite.ctx, []string{suite.unmuxedSource.Address()}).
Return(map[string]uint64{suite.unmuxedSource.Address(): 0}, nil).
Once()

suite.system.Submit(
suite.ctx,
Expand Down Expand Up @@ -433,9 +427,6 @@ func (suite *SystemTestSuite) TestTickFinishFeeBumpTransaction() {
suite.db.On("TransactionByHash", suite.ctx, mock.Anything, innerHash).
Return(sql.ErrNoRows).Once()
suite.db.On("NoRows", sql.ErrNoRows).Return(true).Twice()
suite.db.On("GetSequenceNumbers", suite.ctx, []string{"GABQGAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB2MX"}).
Return(map[string]uint64{"GABQGAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB2MX": 96}, nil).
Once()

l := suite.system.Submit(suite.ctx, innerTxEnvelope, parsedInnerTx, innerHash)
assert.Equal(suite.T(), 0, len(l))
Expand Down

0 comments on commit 7d39d5c

Please sign in to comment.