Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gllb committed Mar 6, 2025
1 parent 214cce4 commit 8ef872a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/config/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ fn create_watcher(
mod tests {
use super::*;
use crate::{
config::ComponentKey,
signal::SignalRx,
test_util::{temp_dir, temp_file, trace_init},
config::ComponentKey,
};
use std::{fs::File, io::Write, time::Duration};
use tokio::sync::broadcast;
Expand Down Expand Up @@ -215,7 +215,14 @@ mod tests {
let mut file = File::create(&file_path).unwrap();

let (signal_tx, signal_rx) = broadcast::channel(128);
spawn_thread(watcher_conf, signal_tx, &[dir], vec![component_config], delay).unwrap();
spawn_thread(
watcher_conf,
signal_tx,
&[dir],
vec![component_config],
delay,
)
.unwrap();

if !test(&mut file, delay * 5, signal_rx).await {
panic!("Test timed out");
Expand Down

0 comments on commit 8ef872a

Please sign in to comment.