Fix tests

This commit is contained in:
Jeremy Soller 2024-11-19 08:15:47 -07:00
parent 2f08c05afe
commit 4ba7d7bbfc
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
use cosmic_files::operation::{recursive::Context, ReplaceResult}; use cosmic_files::operation::{recursive::Context, Controller, ReplaceResult};
use std::{error::Error, io, path::PathBuf}; use std::{error::Error, io, path::PathBuf};
fn main() -> Result<(), Box<dyn Error>> { fn main() -> Result<(), Box<dyn Error>> {
let mut context = Context::new() let mut context = Context::new(Controller::new())
.on_progress(|op, progress| { .on_progress(|op, progress| {
println!("{:?}: {:?}", op.to, progress); println!("{:?}: {:?}", op.to, progress);
}) })

View file

@ -1096,7 +1096,7 @@ mod tests {
use test_log::test; use test_log::test;
use tokio::sync; use tokio::sync;
use super::{Operation, ReplaceResult}; use super::{Controller, Operation, ReplaceResult};
use crate::{ use crate::{
app::{ app::{
test_utils::{ test_utils::{
@ -1122,7 +1122,7 @@ mod tests {
paths: paths_clone, paths: paths_clone,
to: to_clone, to: to_clone,
} }
.perform(id, &Mutex::new(tx).into()) .perform(id, &sync::Mutex::new(tx).into(), Controller::new())
.await .await
}); });