Skip to content

Commit

Permalink
Fix flaky ERC721 and ERC1155 bridge tests (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal authored Jun 27, 2023
1 parent 1ab1a31 commit 1bfb902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e-polybft/e2e/bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,15 @@ func TestE2E_Bridge_ERC721Transfer(t *testing.T) {
)

// wait for a few more sprints
require.NoError(t, cluster.WaitForBlock(25, 2*time.Minute))
require.NoError(t, cluster.WaitForBlock(50, 4*time.Minute))

validatorSrv := cluster.Servers[0]
childEthEndpoint := validatorSrv.JSONRPC().Eth()

// the transactions are processed and there should be a success events
var stateSyncedResult contractsapi.StateSyncResultEvent

logs, err := getFilteredLogs(stateSyncedResult.Sig(), 0, 100, childEthEndpoint)
logs, err := getFilteredLogs(stateSyncedResult.Sig(), 0, 50, childEthEndpoint)
require.NoError(t, err)

txRelayer, err := txrelayer.NewTxRelayer(txrelayer.WithClient(validatorSrv.JSONRPC()))
Expand Down Expand Up @@ -524,15 +524,15 @@ func TestE2E_Bridge_ERC1155Transfer(t *testing.T) {
)

// wait for a few more sprints
require.NoError(t, cluster.WaitForBlock(25, 2*time.Minute))
require.NoError(t, cluster.WaitForBlock(50, 4*time.Minute))

validatorSrv := cluster.Servers[0]
childEthEndpoint := validatorSrv.JSONRPC().Eth()

// the transactions are processed and there should be a success events
var stateSyncedResult contractsapi.StateSyncResultEvent

logs, err := getFilteredLogs(stateSyncedResult.Sig(), 0, 100, childEthEndpoint)
logs, err := getFilteredLogs(stateSyncedResult.Sig(), 0, 50, childEthEndpoint)
require.NoError(t, err)

txRelayer, err := txrelayer.NewTxRelayer(txrelayer.WithClient(validatorSrv.JSONRPC()))
Expand Down

0 comments on commit 1bfb902

Please sign in to comment.