Skip to content

Commit

Permalink
fix: tests to set default as -1
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Apr 3, 2024
1 parent 04e334e commit cbdbca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_tests/internal_payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (suite *PaymentTestSuite) TestIncomingExceededChecks() {
assert.Equal(suite.T(), responses.TooMuchVolumeError.Message, resp.Message)

//change the config back, it should work now
suite.service.Config.MaxReceiveVolume = 0
suite.service.Config.MaxReceiveVolume = -1
suite.service.Config.MaxVolumePeriod = 0
invoiceResponse = suite.createAddInvoiceReq(aliceFundingSats, "integration test internal payment alice", suite.aliceToken)
err = suite.mlnd.mockPaidInvoice(invoiceResponse, 0, false, nil)
Expand Down Expand Up @@ -310,8 +310,8 @@ func (suite *PaymentTestSuite) TestOutgoingExceededChecks() {
assert.Equal(suite.T(), responses.TooMuchVolumeError.Message, resp.Message)

//change the config back
suite.service.Config.MaxSendAmount = 0
suite.service.Config.MaxSendVolume = 0
suite.service.Config.MaxSendAmount = -1
suite.service.Config.MaxSendVolume = -1
suite.service.Config.MaxVolumePeriod = 0
}

Expand Down

0 comments on commit cbdbca7

Please sign in to comment.