Skip to content

Commit 1547467

Browse files
committed
lint
1 parent 3363e7b commit 1547467

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rs/tests/message_routing/rejoin_test_lib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ futures = { workspace = true }
1515
ic-agent = { workspace = true }
1616
ic-system-test-driver = { path = "../../driver" }
1717
ic-types = { path = "../../../types/types" }
18+
ic-universal-canister = { path = "../../../universal_canister/lib" }
1819
ic-utils = { workspace = true }
1920
slog = { workspace = true }
2021
tokio = { workspace = true }

rs/tests/message_routing/rejoin_test_many_canisters.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use ic_system_test_driver::driver::ic::{
2424
};
2525
use ic_system_test_driver::driver::pot_dsl::{PotSetupFn, SysTestFn};
2626
use ic_system_test_driver::driver::prometheus_vm::{HasPrometheus, PrometheusVm};
27-
use ic_system_test_driver::driver::simulate_network::{FixedNetworkSimulation, SimulateNetwork};
2827
use ic_system_test_driver::driver::test_env::TestEnv;
2928
use ic_system_test_driver::driver::test_env_api::{
3029
HasPublicApiUrl, HasTopologySnapshot, IcNodeContainer,
@@ -42,13 +41,6 @@ const NUM_CANISTERS: usize = 100_000;
4241
const NUM_NODES: usize = 13; // mainnet value
4342
const DKG_INTERVAL: u64 = 499; // mainnet value
4443

45-
// Network parameters
46-
const BANDWIDTH_MBITS: u32 = 300; // artificial cap on bandwidth
47-
const LATENCY: Duration = Duration::from_millis(150); // artificial added latency
48-
const NETWORK_SIMULATION: FixedNetworkSimulation = FixedNetworkSimulation::new()
49-
.with_latency(LATENCY)
50-
.with_bandwidth(BANDWIDTH_MBITS);
51-
5244
fn main() -> Result<()> {
5345
let config = Config::new(NUM_NODES, NUM_CANISTERS);
5446
let test = config.clone().test();
@@ -121,14 +113,6 @@ fn setup(env: TestEnv, config: Config) {
121113
});
122114

123115
env.sync_with_prometheus();
124-
/*
125-
let root_subnet = env.topology_snapshot().root_subnet();
126-
root_subnet.apply_network_settings(NETWORK_SIMULATION);
127-
*/
128-
let topology_snapshot = env.topology_snapshot();
129-
let (app_subnet, _) = get_app_subnet_and_node(&topology_snapshot);
130-
131-
//app_subnet.apply_network_settings(NETWORK_SIMULATION);
132116
}
133117

134118
fn test(env: TestEnv, config: Config) {

0 commit comments

Comments
 (0)