Skip to content

Commit

Permalink
disable test again
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 13, 2023
1 parent f9d59fe commit b4a7483
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.google.common.io.Resources;
import java.net.URL;
import java.util.Map;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import tech.pegasys.teku.infrastructure.time.SystemTimeProvider;
import tech.pegasys.teku.infrastructure.unsigned.UInt64;
Expand All @@ -38,23 +39,22 @@ public class CapellaUpgradeAcceptanceTest extends AcceptanceTestBase {
private static final URL JWT_FILE = Resources.getResource("auth/ee-jwt-secret.hex");

@Test
@Disabled("Switch to shanghaiBlock Besu genesis when it's available and enable")
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<String, String> genesisOverrides =
Map.of("shanghaiTime", String.valueOf(shanghaiTime));

BesuNode primaryEL =
createBesuNode(
BesuDockerVersion.STABLE,
config ->
config
.withMergeSupport(true)
.withGenesisFile("besu/shanghaiGenesis.json")
.withGenesisFile("besu/mergedGenesis.json")
.withP2pEnabled(true)
.withJwtTokenAuthorization(JWT_FILE),
genesisOverrides);
Map.of("shanghaiTime", String.valueOf(shanghaiTime)));
primaryEL.start();

BesuNode secondaryEL =
Expand All @@ -63,10 +63,10 @@ void shouldUpgradeToCapella() throws Exception {
config ->
config
.withMergeSupport(true)
.withGenesisFile("besu/shanghaiGenesis.json")
.withGenesisFile("besu/mergedGenesis.json")
.withP2pEnabled(true)
.withJwtTokenAuthorization(JWT_FILE),
genesisOverrides);
Map.of("shanghaiTime", String.valueOf(shanghaiTime)));
secondaryEL.start();
secondaryEL.addPeer(primaryEL);

Expand Down

This file was deleted.

0 comments on commit b4a7483

Please sign in to comment.