Search in sources :

Example 1 with Config

use of tech.pegasys.teku.test.acceptance.dsl.TekuNode.Config in project teku by ConsenSys.

the class SyncAcceptanceTest method shouldSyncToNodeWithGreaterFinalizedEpoch.

@Test
public void shouldSyncToNodeWithGreaterFinalizedEpoch() throws Exception {
    final TekuNode primaryNode = createTekuNode(Config::withRealNetwork);
    primaryNode.start();
    UInt64 genesisTime = primaryNode.getGenesisTime();
    final TekuNode lateJoiningNode = createTekuNode(configureLateJoiningNode(primaryNode, genesisTime.intValue()));
    primaryNode.waitForNewFinalization();
    lateJoiningNode.start();
    lateJoiningNode.waitForGenesis();
    lateJoiningNode.waitUntilInSyncWith(primaryNode);
}
Also used : Config(tech.pegasys.teku.test.acceptance.dsl.TekuNode.Config) TekuNode(tech.pegasys.teku.test.acceptance.dsl.TekuNode) UInt64(tech.pegasys.teku.infrastructure.unsigned.UInt64) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 UInt64 (tech.pegasys.teku.infrastructure.unsigned.UInt64)1 TekuNode (tech.pegasys.teku.test.acceptance.dsl.TekuNode)1 Config (tech.pegasys.teku.test.acceptance.dsl.TekuNode.Config)1