Skip to content

Commit

Permalink
fix integration test after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean committed Apr 3, 2023
1 parent 749151d commit 5acd29c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrationTests/vm/txsFee/asyncESDT_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-go/common"
"github.com/multiversx/mx-chain-go/common/errChan"
"github.com/multiversx/mx-chain-go/config"
"github.com/multiversx/mx-chain-go/integrationTests/vm"
"github.com/multiversx/mx-chain-go/integrationTests/vm/txsFee/utils"
Expand Down Expand Up @@ -542,7 +543,7 @@ func TestAsyncESDTCallForThirdContractShouldWork(t *testing.T) {

leaves := &common.TrieIteratorChannels{
LeavesChan: make(chan core.KeyValueHolder, 1),
ErrChan: make(chan error, 1),
ErrChan: errChan.NewErrChanWrapper(),
}
err = testContext.Accounts.GetAllLeaves(leaves, context.Background(), roothash)
require.Nil(t, err)
Expand All @@ -551,6 +552,6 @@ func TestAsyncESDTCallForThirdContractShouldWork(t *testing.T) {
// do nothing, just iterate
}

err = <-leaves.ErrChan
err = leaves.ErrChan.ReadFromChanNonBlocking()
require.Nil(t, err)
}

0 comments on commit 5acd29c

Please sign in to comment.