message: Pass in count of consensus values instead of vector.
diff: @@ -548,8 +548,10 @@ struct HighwayTestHarnessBuilder<DS: DeliveryStrategy> {
  /// FTT value for the finality detector.
  /// If not given, defaults to 1/3 of total validators' weight.
  ftt: Option<u64>,
  - /// Consensus values to be proposed by the nodes in the network.
  - consensus_values: Option<VecDeque<<TestContext as Context>::ConsensusValue>>,
  + /// Number of consensus values to be proposed by the nodes in the network.
  + /// Those will be generated by the test framework.
  + /// Defaults to 10.
  + consensus_values_count: u8,
  /// Distribution of message delivery (delaying, dropping) delays..
  delivery_distribution: Distribution,
  delivery_strategy: DS,
  @@ -594,7 +596,7 @@ impl HighwayTestHarnessBuilder<InstantDeliveryNoDropping> {
  max_faulty_validators: 10,
  faulty_weight: 0,
  ftt: None,
  - consensus_values: None,
  + consensus_values_count: 10,
  delivery_distribution: Distribution::Uniform,
  delivery_strategy: InstantDeliveryNoDropping,
  weight_limits: (0, 0),
  @@ -614,12 +616,9 @@ impl<DS: DeliveryStrategy> HighwayTestHarnessBuilder<DS> {
  self
  }
  - pub(crate) fn consensus_values(
  - mut self,
  - cv: Vec<<TestContext as Context>::ConsensusValue>,
  - ) -> Self {
  - assert!(!cv.is_empty());
  - self.consensus_values = Some(VecDeque::from(cv));
  + pub(crate) fn consensus_values_count(mut self, count: u8) -> Self {
  + assert!(count > 0);
  + self.consensus_values_count = count;
  self
  }
  @@ -631,7 +630,7 @@ impl<DS: DeliveryStrategy> HighwayTestHarnessBuilder<DS> {
  max_faulty_validators: self.max_faulty_validators,
  faulty_weight: self.faulty_weight,
  ftt: self.ftt,
  - consensus_values: self.consensus_values,
  + consensus_values_count: self.consensus_values_count,
  delivery_distribution: self.delivery_distribution,
  delivery_strategy: ds,
  weight_limits: self.weight_limits,
  @@ -678,10 +677,7 @@ impl<DS: DeliveryStrategy> HighwayTestHarnessBuilder<DS> {
  }
  fn build<R: Rng>(mut self, rng: &mut R) -> Result<HighwayTestHarness<DS>, BuilderError> {
  - let consensus_values = self
  - .consensus_values
  - .clone()
  - .ok_or_else(|| BuilderError::EmptyConsensusValues)?;
  + let consensus_values = (0..self.consensus_values_count as u32).collect::<VecDeque<u32>>();
  let instance_id = 0;
  let seed = self.seed;
  @@ -941,7 +937,7 @@ mod test_harness {
  let mut highway_test_harness: HighwayTestHarness<InstantDeliveryNoDropping> =
  HighwayTestHarnessBuilder::new()
  - .consensus_values(vec![1])
  + .consensus_values_count(1)
  .weight_limits(7, 10)
  .build(&mut rand)
  .ok()
  @@ -962,7 +958,7 @@ mod test_harness {
  let mut highway_test_harness: HighwayTestHarness<InstantDeliveryNoDropping> =
  HighwayTestHarnessBuilder::new()
  .max_faulty_validators(5)
  - .consensus_values((0..10).collect())
  + .consensus_values_count(5)
  .weight_limits(5, 10)
  .faulty_weight_perc(5)
  .build(&mut rand)
  