message: Extract `TestContext` from `test_harness` mod.
diff: @@ -14,7 +14,7 @@ use crate::{
  DeliverySchedule, Message, Target, TargetedMessage, Validator, ValidatorId, VirtualNet,
  },
  tests::queue::{MessageT, QueueEntry},
  - traits::{ConsensusValueT, Context},
  + traits::{ConsensusValueT, Context, ValidatorSecret},
  BlockContext,
  },
  types::Timestamp,
  @@ -93,11 +93,11 @@ impl From<Effect<TestContext>> for HighwayMessage {
  use rand::Rng;
  use std::{
  - collections::{HashMap, VecDeque},
  + collections::{hash_map::DefaultHasher, HashMap, VecDeque},
  fmt::{Debug, Display, Formatter},
  + hash::Hasher,
  marker::PhantomData,
  };
  -use test_harness::{TestContext, TestSecret};
  impl PartialOrd for HighwayMessage {
  fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
  @@ -610,7 +610,7 @@ impl HighwayTestHarnessBuilder<InstantDeliveryNoDropping> {
  impl<DS: DeliveryStrategy> HighwayTestHarnessBuilder<DS> {
  /// Sets a percentage of weight that will be assigned to malicious nodes.
  - /// `faulty_weight` must be a value between 0 (inclusive) and 100 (inclusive).
  + /// `faulty_weight` must be a value between 0 (inclusive) and 33 (inclusive).
  pub(crate) fn faulty_weight_perc(mut self, faulty_weight: u64) -> Self {
  self.faulty_weight = faulty_weight;
  self
  @@ -873,25 +873,6 @@ impl<DS: DeliveryStrategy> HighwayTestHarnessBuilder<DS> {
  }
  }
  -mod test_harness {
  - use super::{
  - CrankOk, DeliverySchedule, DeliveryStrategy, HighwayMessage, HighwayTestHarness,
  - HighwayTestHarnessBuilder, InstantDeliveryNoDropping, TestRunError,
  - };
  - use crate::{
  - components::consensus::{
  - tests::consensus_des_testing::ValidatorId,
  - traits::{Context, ValidatorSecret},
  - },
  - types::TimeDiff,
  - };
  - use rand_core::SeedableRng;
  - use rand_xorshift::XorShiftRng;
  - use std::{
  - collections::{hash_map::DefaultHasher, HashMap},
  - hash::Hasher,
  - };
  -
  #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
  pub(crate) struct TestContext;
  @@ -931,6 +912,25 @@ mod test_harness {
  }
  }
  +mod test_harness {
  + use super::{
  + CrankOk, DeliverySchedule, DeliveryStrategy, HighwayMessage, HighwayTestHarness,
  + HighwayTestHarnessBuilder, InstantDeliveryNoDropping, TestRunError,
  + };
  + use crate::{
  + components::consensus::{
  + tests::consensus_des_testing::ValidatorId,
  + traits::{Context, ValidatorSecret},
  + },
  + types::TimeDiff,
  + };
  + use rand_core::SeedableRng;
  + use rand_xorshift::XorShiftRng;
  + use std::{
  + collections::{hash_map::DefaultHasher, HashMap},
  + hash::Hasher,
  + };
  +
  #[test]
  fn on_empty_queue_error() {
  let mut rand = XorShiftRng::from_seed(rand::random());
  