Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
simplify wait condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Oct 23, 2023
1 parent 173b2cd commit 940408f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions e2e-polybft/property/property_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ func TestProperty_DropValidators(t *testing.T) {
node.Start()
}

time.Sleep(2 * blockTime)
currentBlock, err = activeValidator.JSONRPC().Eth().GetBlockByNumber(ethgo.Latest, false)
require.NoError(t, err)
// check that block production is restarted
require.True(t, oldBlockNumber < currentBlock.Number)
require.NoError(t, cluster.WaitForBlock(oldBlockNumber+1, 30*time.Second))
})
}

0 comments on commit 940408f

Please sign in to comment.