Fix unit test - fedora build.

This commit is contained in:
l-const 2025-02-11 18:33:59 +02:00
parent 440308fdea
commit ba98547acb
No known key found for this signature in database
GPG key ID: 71BB70D3244647EF

View file

@ -1087,7 +1087,7 @@ mod tests {
use test_log::test; use test_log::test;
use tokio::sync; use tokio::sync;
use super::{Controller, Operation, OperationSelection, ReplaceResult}; use super::{Controller, Operation, OperationError, OperationSelection, ReplaceResult};
use crate::{ use crate::{
app::{ app::{
test_utils::{ test_utils::{
@ -1106,7 +1106,7 @@ mod tests {
pub async fn operation_copy( pub async fn operation_copy(
paths: Vec<PathBuf>, paths: Vec<PathBuf>,
to: PathBuf, to: PathBuf,
) -> Result<OperationSelection, String> { ) -> Result<OperationSelection, OperationError> {
let id = fastrand::u64(0..u64::MAX); let id = fastrand::u64(0..u64::MAX);
let (tx, mut rx) = mpsc::channel(BUF_SIZE); let (tx, mut rx) = mpsc::channel(BUF_SIZE);
let paths_clone = paths.clone(); let paths_clone = paths.clone();