Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
moshababo committed Nov 28, 2023
1 parent 1aee2fe commit ec03c7a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions node/actors/bft/src/leader/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@
//! - [x] replica_commit_protocol_version_mismatch // FAILS
//!
use super::{
replica_commit::Error as ReplicaCommitError, replica_prepare::Error as ReplicaPrepareError,
};
use crate::testonly::ut_harness::UTHarness;
use assert_matches::assert_matches;
use rand::Rng;

use zksync_consensus_roles::validator::{
self, CommitQC, ConsensusMsg, LeaderCommit, LeaderPrepare, Phase, ProtocolVersion,
ReplicaCommit, ViewNumber,
};

use crate::testonly::ut_harness::UTHarness;

use super::{
replica_commit::Error as ReplicaCommitError, replica_prepare::Error as ReplicaPrepareError,
};

#[tokio::test]
async fn replica_prepare_sanity() {
let mut util = UTHarness::new().await;
Expand Down Expand Up @@ -266,11 +269,12 @@ async fn replica_commit_old() {

let res = util.dispatch_replica_commit(replica_commit);
assert_matches!(
res,
Err(ReplicaCommitError::Old { current_view, current_phase }) => {
assert_eq!(current_view, util.current_replica_view());
assert_eq!(current_phase, util.current_replica_phase());
});
res,
Err(ReplicaCommitError::Old { current_view, current_phase }) => {
assert_eq!(current_view, util.current_replica_view());
assert_eq!(current_phase, util.current_replica_phase());
}
);
}

#[tokio::test]
Expand Down

0 comments on commit ec03c7a

Please sign in to comment.