diff --git a/crates/sui-graphql-rpc/src/test_infra/cluster.rs b/crates/sui-graphql-rpc/src/test_infra/cluster.rs index 6469144784b0c..e6ffb9dad733d 100644 --- a/crates/sui-graphql-rpc/src/test_infra/cluster.rs +++ b/crates/sui-graphql-rpc/src/test_infra/cluster.rs @@ -32,7 +32,9 @@ use tokio_util::sync::CancellationToken; use tracing::info; const VALIDATOR_COUNT: usize = 4; -const EPOCH_DURATION_MS: u64 = 10000; +/// Set default epoch duration to 300s. This high value is to turn the TestCluster into a lockstep +/// network of sorts. Tests should call `trigger_reconfiguration` to advance the network's epoch. +const EPOCH_DURATION_MS: u64 = 300_000; const ACCOUNT_NUM: usize = 20; const GAS_OBJECT_COUNT: usize = 3; diff --git a/crates/sui-graphql-rpc/tests/e2e_tests.rs b/crates/sui-graphql-rpc/tests/e2e_tests.rs index 7f4321f59594c..368752f0d1e0e 100644 --- a/crates/sui-graphql-rpc/tests/e2e_tests.rs +++ b/crates/sui-graphql-rpc/tests/e2e_tests.rs @@ -391,6 +391,7 @@ async fn test_zklogin_sig_verify() { let cluster = start_cluster(ServiceConfig::test_defaults()).await; let test_cluster = &cluster.network.validator_fullnode_handle; + test_cluster.trigger_reconfiguration().await; test_cluster.wait_for_epoch_all_nodes(1).await; test_cluster.wait_for_authenticator_state_update().await; diff --git a/crates/sui-mvr-graphql-rpc/src/test_infra/cluster.rs b/crates/sui-mvr-graphql-rpc/src/test_infra/cluster.rs index c543acf71d4aa..14636927a7f4a 100644 --- a/crates/sui-mvr-graphql-rpc/src/test_infra/cluster.rs +++ b/crates/sui-mvr-graphql-rpc/src/test_infra/cluster.rs @@ -32,7 +32,9 @@ use tokio_util::sync::CancellationToken; use tracing::info; const VALIDATOR_COUNT: usize = 4; -const EPOCH_DURATION_MS: u64 = 10000; +/// Set default epoch duration to 300s. This high value is to turn the TestCluster into a lockstep +/// network of sorts. Tests should call `trigger_reconfiguration` to advance the network's epoch. +const EPOCH_DURATION_MS: u64 = 300_000; const ACCOUNT_NUM: usize = 20; const GAS_OBJECT_COUNT: usize = 3; diff --git a/crates/sui-mvr-graphql-rpc/tests/e2e_tests.rs b/crates/sui-mvr-graphql-rpc/tests/e2e_tests.rs index db62c72faa1ce..3b53fa2108ac7 100644 --- a/crates/sui-mvr-graphql-rpc/tests/e2e_tests.rs +++ b/crates/sui-mvr-graphql-rpc/tests/e2e_tests.rs @@ -290,6 +290,7 @@ async fn test_zklogin_sig_verify() { let cluster = start_cluster(ServiceConfig::test_defaults()).await; let test_cluster = &cluster.network.validator_fullnode_handle; + test_cluster.trigger_reconfiguration().await; test_cluster.wait_for_epoch_all_nodes(1).await; test_cluster.wait_for_authenticator_state_update().await;