Skip to content

Commit

Permalink
Remove redundant assert_matches
Browse files Browse the repository at this point in the history
  • Loading branch information
moshababo committed Dec 6, 2023
1 parent b5d7230 commit d816030
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions node/actors/bft/src/testonly/ut_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,9 @@ impl UTHarness {
.unwrap()
.msg;

assert_matches!(
replica_prepare,
ReplicaPrepare {
view: _view,
high_vote,
high_qc,
..
} => {
assert_eq!(_view, view);
assert_eq!(high_vote.view, high_vote_view);
assert_eq!(high_qc.message.view, high_qc_view);
}
);
assert_eq!(replica_prepare.view, view);
assert_eq!(replica_prepare.high_vote.view, high_vote_view);
assert_eq!(replica_prepare.high_qc.message.view, high_qc_view);

self.set_replica_view(self.owner_as_view_leader_next());
self.iterate_next().await;
Expand Down

0 comments on commit d816030

Please sign in to comment.