Fix tests
This commit is contained in:
parent
2f08c05afe
commit
4ba7d7bbfc
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue