Skip to content

Commit

Permalink
fixup: Add bootstrap check at end of new test
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Aug 27, 2023
1 parent c024766 commit 3266c3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/c/dynamic_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ var _ = e2e.DescribeCChainSerial("[Dynamic Fees]", func() {
require.NoError(ethClient.SendTransaction(e2e.DefaultContext(), signedTx))
_ = awaitTransaction(ethClient, signedTx)
})

network := e2e.Env.GetNetwork()
e2e.CheckBootstrapIsPossible(network)
})
})

Expand Down
7 changes: 7 additions & 0 deletions tests/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,10 @@ func WaitForHealthy(node testnet.Node) {
defer cancel()
require.NoError(ginkgo.GinkgoT(), testnet.WaitForHealthy(ctx, node))
}

// Verifies that the state of the network is compatible with bootstrapping a new node.
func CheckBootstrapIsPossible(network testnet.Network) {
ginkgo.By("checking if bootstrap is possible with the current network state")
node := AddEphemeralNode(network, testnet.FlagsMap{})
WaitForHealthy(node)
}

0 comments on commit 3266c3f

Please sign in to comment.