pinakes-server: update tests for chunked upload manager

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0f08a53475348f708e0d23b235b344916a6a6964
This commit is contained in:
raf 2026-02-09 17:12:02 +03:00
commit fe52fedd88
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 8 additions and 3 deletions

View file

@ -411,9 +411,11 @@ And an embedded image: ![[diagram.png]]
// Should include relative path and .md variations // Should include relative path and .md variations
assert!(!candidates.is_empty()); assert!(!candidates.is_empty());
assert!(candidates assert!(
.iter() candidates
.any(|p| p.to_string_lossy().contains("My Note.md"))); .iter()
.any(|p| p.to_string_lossy().contains("My Note.md"))
);
} }
#[test] #[test]

View file

@ -160,6 +160,7 @@ async fn setup_app() -> axum::Router {
plugin_manager: None, plugin_manager: None,
transcode_service: None, transcode_service: None,
managed_storage: None, managed_storage: None,
chunked_upload_manager: None,
}; };
pinakes_server::app::create_router(state) pinakes_server::app::create_router(state)
@ -232,6 +233,7 @@ async fn setup_app_with_auth() -> (axum::Router, String, String, String) {
plugin_manager: None, plugin_manager: None,
transcode_service: None, transcode_service: None,
managed_storage: None, managed_storage: None,
chunked_upload_manager: None,
}; };
let app = pinakes_server::app::create_router(state); let app = pinakes_server::app::create_router(state);

View file

@ -118,6 +118,7 @@ async fn setup_app_with_plugins() -> (axum::Router, Arc<PluginManager>, tempfile
plugin_manager: Some(plugin_manager.clone()), plugin_manager: Some(plugin_manager.clone()),
transcode_service: None, transcode_service: None,
managed_storage: None, managed_storage: None,
chunked_upload_manager: None,
}; };
let router = pinakes_server::app::create_router(state); let router = pinakes_server::app::create_router(state);