patch: fix local file test

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid 2023-10-30 15:41:39 +08:00
parent 007fb34ca5
commit bc3acc2826
No known key found for this signature in database
GPG Key ID: E0A5F564C51C056E

View File

@ -259,7 +259,7 @@ pub(super) fn construct_file_list(paths: &[PathBuf]) -> Result<Vec<LocalFile>, C
#[cfg(test)]
mod file_list_test {
use std::path::PathBuf;
use std::{path::PathBuf, sync::atomic::AtomicU64};
use hbb_common::bytes::{BufMut, BytesMut};
@ -281,6 +281,7 @@ mod file_list_test {
handle: None,
name: name.to_string(),
size: 0,
offset: AtomicU64::new(0),
last_write_time: std::time::SystemTime::UNIX_EPOCH,
read_only: false,
is_dir,