Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Dec 22, 2024
1 parent ac2b618 commit 3a72c99
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
4 changes: 2 additions & 2 deletions code/crates/starknet/test/tests/high_load_stress.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::time::Duration;
use informalsystems_malachitebft_starknet_test::{init_logging, TestBuilder};
use std::time::Duration;

#[tokio::test]
async fn high_load_stress_test() {
Expand All @@ -22,4 +22,4 @@ async fn high_load_stress_test() {
node.wait_until(HEIGHT).success();

test.build().run(Duration::from_secs(60)).await;
}
}
4 changes: 2 additions & 2 deletions code/crates/starknet/test/tests/node_recovery.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::time::Duration;
use informalsystems_malachitebft_starknet_test::{init_logging, TestBuilder};
use std::time::Duration;

#[tokio::test]
async fn node_recovery_after_crash() {
Expand Down Expand Up @@ -27,4 +27,4 @@ async fn node_recovery_after_crash() {
.success();

test.build().run(Duration::from_secs(60)).await;
}
}
24 changes: 19 additions & 5 deletions code/crates/starknet/test/tests/validator_set_changes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::time::Duration;
use informalsystems_malachitebft_starknet_test::{init_logging, TestBuilder};
use std::time::Duration;

#[tokio::test]
async fn dynamic_validator_set_changes() {
Expand All @@ -10,9 +10,23 @@ async fn dynamic_validator_set_changes() {
let mut test = TestBuilder::<()>::new();

// Configure all nodes at once
test.add_node().with_voting_power(10).start().wait_until(5).wait_until(HEIGHT).success();
test.add_node().with_voting_power(10).start().wait_until(5).wait_until(HEIGHT).success();
test.add_node().with_voting_power(10).start().wait_until(HEIGHT).success();
test.add_node()
.with_voting_power(10)
.start()
.wait_until(5)
.wait_until(HEIGHT)
.success();
test.add_node()
.with_voting_power(10)
.start()
.wait_until(5)
.wait_until(HEIGHT)
.success();
test.add_node()
.with_voting_power(10)
.start()
.wait_until(HEIGHT)
.success();

test.build().run(Duration::from_secs(60)).await;
}
}

0 comments on commit 3a72c99

Please sign in to comment.