Skip to content

Commit

Permalink
Extract finalBlockNum variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Apr 12, 2023
1 parent ca96b05 commit 0a0af6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e-polybft/e2e/bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestE2E_Bridge_Transfers(t *testing.T) {
numBlockConfirmations = 2
// make epoch size long enough, so that all exit events are processed within the same epoch
epochSize = 30
sprintSize = 5
sprintSize = uint64(5)
)

receivers := make([]string, transfersCount)
Expand Down Expand Up @@ -78,8 +78,9 @@ func TestE2E_Bridge_Transfers(t *testing.T) {
),
)

finalBlockNum := 8 * sprintSize
// wait for a couple of sprints
require.NoError(t, cluster.WaitForBlock(8*sprintSize, 2*time.Minute))
require.NoError(t, cluster.WaitForBlock(finalBlockNum, 2*time.Minute))

// the transactions are processed and there should be a success events
var stateSyncedResult contractsapi.StateSyncResultEvent
Expand All @@ -92,7 +93,7 @@ func TestE2E_Bridge_Transfers(t *testing.T) {
}

filter.SetFromUint64(0)
filter.SetToUint64(8 * sprintSize)
filter.SetToUint64(finalBlockNum)

logs, err := childEthEndpoint.GetLogs(filter)
require.NoError(t, err)
Expand Down

0 comments on commit 0a0af6e

Please sign in to comment.