Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Oct 23, 2023
1 parent 0254099 commit 796f6d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/common/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub mod test {

const DUMMY_ADDRESS: Address = Address::new(42);

const DUMMY_VALUE: Self::Value = Value::new(0xdeadbeef);
const DUMMY_VALUE: Self::Value = Value::new(9999);

fn new_proposal(height: Height, round: Round, value: Value, pol_round: Round) -> Proposal {
Proposal::new(height, round, value, pol_round)
Expand Down
4 changes: 2 additions & 2 deletions Code/consensus/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ where
#[cfg(test)]
mod tests {
use malachite_common::test::{
Height, Proposal, PublicKey, TestConsensus, Validator, ValidatorSet, Value, Vote,
Height, Proposal, PublicKey, TestConsensus, Validator, ValidatorSet, Vote,
};
use malachite_round::state::{RoundValue, State, Step};

use super::*;

#[test]
fn test_executor_steps() {
let value = Value::new(9999); // TODO: get value from external source
let value = TestConsensus::DUMMY_VALUE; // TODO: get value from external source
let value_id = value.id();
let v1 = Validator::new(PublicKey::new(vec![1]), 1);
let v2 = Validator::new(PublicKey::new(vec![2]), 1);
Expand Down

0 comments on commit 796f6d5

Please sign in to comment.