Skip to content

Commit

Permalink
minor updates to testing harness
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Jun 7, 2024
1 parent 5b13eec commit 4997175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdn-broker/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mod direct;
use crate::{connections::DirectMap, Broker, Config};

/// An actor is a [user/broker] that we inject to test message send functionality.
#[derive(Clone)]
pub struct InjectedActor {
/// The in-memory sender that sends to the broker under test
pub sender: Connection,
Expand Down Expand Up @@ -173,8 +174,7 @@ impl TestDefinition {
// For each user,
for (i, topics) in users.iter().enumerate() {
// Extrapolate identifier
#[allow(clippy::cast_possible_truncation)]
let identifier: Arc<Vec<u8>> = Arc::from(vec![i as u8]);
let identifier: Arc<Vec<u8>> = Arc::from(i.to_be_bytes().to_vec());

// Generate a testing pair of memory network channels
let connection1 = Memory::gen_testing_connection();
Expand Down

0 comments on commit 4997175

Please sign in to comment.