Skip to content

Commit

Permalink
src: lib: drivers: fake: Init CLI on loopback test w/ no endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Feb 25, 2025
1 parent bdfca39 commit 1f842ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/drivers/fake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,20 @@ mod test {
use std::sync::Arc;

use anyhow::Result;
use clap::Parser;
use tokio::sync::{broadcast, RwLock};

use crate::cli;

use super::*;

#[tokio::test]
async fn loopback_test() -> Result<()> {
cli::init_with(cli::Args::parse_from(vec![
"", // For some unknown reason, the first argument is ignored
"--allow-no-endpoints",
]));

let (hub_sender, _) = broadcast::channel(10000);

let number_of_messages = 800;
Expand Down

0 comments on commit 1f842ef

Please sign in to comment.