Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gql] Increase EPOCH_DURATION_MS to reduce tests interacting with reconfiguration #20692

Merged
merged 3 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/sui-graphql-rpc/src/test_infra/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions crates/sui-graphql-rpc/tests/e2e_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 3 additions & 1 deletion crates/sui-mvr-graphql-rpc/src/test_infra/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions crates/sui-mvr-graphql-rpc/tests/e2e_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading