fix shouldReplaceLowestPriorityBlockWhenCacheFull flaky test (#1494)

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
pull/1497/head
matkt 4 years ago committed by GitHub
parent a6dd20adb1
commit 93521e9408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/state/cache/PendingBlockCacheTest.java

@ -134,7 +134,7 @@ public class PendingBlockCacheTest {
private ImmutablePendingBlock generateBlock(final Block parentBlock, final Bytes nodeId) {
final Block block =
gen.block(gen.nextBlockOptions(parentBlock).setTimestamp(System.currentTimeMillis()));
gen.block(gen.nextBlockOptions(parentBlock).setTimestamp(System.nanoTime()));
return ImmutablePendingBlock.builder().block(block).nodeId(nodeId).build();
}
}

Loading…
Cancel
Save