Skip to content

Commit

Permalink
- fixed semi-integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Oct 21, 2024
1 parent 2adf726 commit 16754f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrationTests/relayers/multiversXToEth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
)

var zero = big.NewInt(0)
var relayerEthBalance = big.NewInt(1000000000)

func asyncCancelCall(cancelHandler func(), delay time.Duration) {
go func() {
Expand Down Expand Up @@ -55,7 +56,7 @@ func TestRelayersShouldExecuteSimpleTransfersFromMultiversXToEth(t *testing.T) {
return expectedStatuses, true
}
ethereumChainMock.BalanceAtCalled = func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) {
return big.NewInt(260000000), nil
return relayerEthBalance, nil
}
multiversXChainMock := mock.NewMultiversXChainMock()
for i := 0; i < len(deposits); i++ {
Expand Down Expand Up @@ -152,7 +153,7 @@ func testRelayersShouldExecuteTransfersFromMultiversXToEthIfTransactionsAppearIn
return expectedStatuses, true
}
ethereumChainMock.BalanceAtCalled = func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) {
return big.NewInt(260000000), nil
return relayerEthBalance, nil
}
multiversXChainMock := mock.NewMultiversXChainMock()
for i := 0; i < len(deposits); i++ {
Expand Down

0 comments on commit 16754f7

Please sign in to comment.