diff --git a/ethereum/eth/src/test/java/tech/pegasys/pantheon/ethereum/eth/sync/fullsync/FullSyncChainDownloaderTest.java b/ethereum/eth/src/test/java/tech/pegasys/pantheon/ethereum/eth/sync/fullsync/FullSyncChainDownloaderTest.java index 7318a456ce..43a35f2fca 100644 --- a/ethereum/eth/src/test/java/tech/pegasys/pantheon/ethereum/eth/sync/fullsync/FullSyncChainDownloaderTest.java +++ b/ethereum/eth/src/test/java/tech/pegasys/pantheon/ethereum/eth/sync/fullsync/FullSyncChainDownloaderTest.java @@ -317,6 +317,8 @@ public class FullSyncChainDownloaderTest { assertThat(syncState.syncTarget().get().peer()).isEqualTo(bestPeer.getEthPeer()); // The next message should be for checkpoint headers from the sync target + Awaitility.waitAtMost(10, TimeUnit.SECONDS) + .until(() -> bestPeer.peekNextOutgoingRequest().isPresent()); final Optional maybeNextMessage = bestPeer.peekNextOutgoingRequest(); assertThat(maybeNextMessage).isPresent(); final MessageData nextMessage = maybeNextMessage.get();