diff --git a/acceptance-tests/src/acceptance-test/java/tech/pegasys/teku/test/acceptance/CapellaUpgradeAcceptanceTest.java b/acceptance-tests/src/acceptance-test/java/tech/pegasys/teku/test/acceptance/CapellaUpgradeAcceptanceTest.java index d984bc644eb..5f0a4f104c7 100644 --- a/acceptance-tests/src/acceptance-test/java/tech/pegasys/teku/test/acceptance/CapellaUpgradeAcceptanceTest.java +++ b/acceptance-tests/src/acceptance-test/java/tech/pegasys/teku/test/acceptance/CapellaUpgradeAcceptanceTest.java @@ -42,6 +42,8 @@ void shouldUpgradeToCapella() throws Exception { final UInt64 currentTime = timeProvider.getTimeInSeconds(); final int genesisTime = currentTime.plus(30).intValue(); // magic node startup time final int shanghaiTime = genesisTime + 4 * 2; // 4 slots, 2 seconds each + final Map genesisOverrides = + Map.of("shanghaiTime", String.valueOf(shanghaiTime)); BesuNode primaryEL = createBesuNode( @@ -52,7 +54,7 @@ void shouldUpgradeToCapella() throws Exception { .withGenesisFile("besu/shanghaiGenesis.json") .withP2pEnabled(true) .withJwtTokenAuthorization(JWT_FILE), - Map.of("shanghaiTime", String.valueOf(shanghaiTime))); + genesisOverrides); primaryEL.start(); BesuNode secondaryEL = @@ -64,7 +66,7 @@ void shouldUpgradeToCapella() throws Exception { .withGenesisFile("besu/shanghaiGenesis.json") .withP2pEnabled(true) .withJwtTokenAuthorization(JWT_FILE), - Map.of("shanghaiTime", String.valueOf(shanghaiTime))); + genesisOverrides); secondaryEL.start(); secondaryEL.addPeer(primaryEL);