Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Feb 6, 2025
1 parent d656b4e commit 41b23e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions polkadot/zombienet-sdk-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ serde_json = { workspace = true }
subxt = { workspace = true, features = ["substrate-compat"] }
subxt-signer = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
tokio-util = { workspace = true, features = ["time"] }
zombienet-sdk = { workspace = true }

[features]
Expand Down
11 changes: 7 additions & 4 deletions polkadot/zombienet-sdk-tests/tests/disabling/slashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ use crate::helpers::{assert_blocks_are_being_finalized, assert_para_throughput};
use polkadot_primitives::{BlockNumber, CandidateHash, DisputeState, Id as ParaId, SessionIndex};
use serde_json::json;
use subxt::{OnlineClient, PolkadotConfig};
use tokio::time::Duration;
use tokio_util::time::FutureExt;
use zombienet_sdk::NetworkConfigBuilder;

#[tokio::test(flavor = "multi_thread")]
Expand All @@ -37,9 +39,7 @@ async fn dispute_past_session_slashing() -> Result<(), anyhow::Error> {
"scheduler_params": {
"group_rotation_frequency": 3,
"max_validators_per_core": 1,
"lookahead": 2,
"max_candidate_depth": 3,
"allowed_ancestry_len": 2
"lookahead": 3,
},
"needed_approvals": 2
}
Expand Down Expand Up @@ -164,7 +164,10 @@ async fn dispute_past_session_slashing() -> Result<(), anyhow::Error> {
)
.await?;

assert_blocks_are_being_finalized(&relay_client).await?;
assert_blocks_are_being_finalized(&relay_client)
.timeout(Duration::from_secs(60))
.await?
.unwrap();

log::info!("Test finished successfully");

Expand Down

0 comments on commit 41b23e6

Please sign in to comment.