Skip to content

Commit

Permalink
coordinator: fix BlockCreationMonitorTest flacky test (#624)
Browse files Browse the repository at this point in the history
* coordinator: fix BlockCreationMonitorTest flacky test

* coordinator: fix BlockCreationMonitorTest flacky test
  • Loading branch information
jpnovais authored Jan 29, 2025
1 parent 317ef4f commit 8c7c9eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ class BlockCreationMonitorTest {
assertThat(blockCreationListener.blocksReceived).isNotEmpty
assertThat(blockCreationListener.blocksReceived.last().number).isGreaterThanOrEqualTo(103u)
}
fakeL2RpcNode.stopHttpServer()
fakeL2RpcNode.stopHttpServer().get()
val lastBlockReceived = blockCreationListener.blocksReceived.last().number

// Wait for a while to make sure no more blocks are fetched
await().atLeast(config.pollingInterval.times(2).toJavaDuration())
fakeL2RpcNode.resumeHttpServer()
fakeL2RpcNode.resumeHttpServer().get()
await()
.atMost(40.seconds.toJavaDuration())
.untilAsserted {
Expand Down

0 comments on commit 8c7c9eb

Please sign in to comment.