From 0cb75af2f07e0a0d64f49b86e17f1eac942d8f14 Mon Sep 17 00:00:00 2001 From: vato007 Date: Tue, 4 Feb 2025 17:53:00 +1030 Subject: [PATCH] Fix CI build for upload to db test --- src/graph/upload_to_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/upload_to_db.rs b/src/graph/upload_to_db.rs index c7a5ba0..89f0095 100644 --- a/src/graph/upload_to_db.rs +++ b/src/graph/upload_to_db.rs @@ -158,7 +158,7 @@ impl RunnableNode for UploadNodeRunner { #[cfg(test)] mod tests { - use std::path; + use std::path::{self, PathBuf}; use crate::graph::node::RunnableNode; use crate::graph::upload_to_db::{DBType, UploadNode, UploadNodeRunner}; @@ -175,7 +175,7 @@ mod tests { .with_wait_for(WaitFor::message_on_stdout("Recovery is complete.".to_owned())) .with_env_var("ACCEPT_EULA", "Y") .with_env_var("MSSQL_SA_PASSWORD", "TestOnlyContainer123") - .with_mount(Mount::bind_mount(path::absolute("./testing/input/upload_to_db")?.to_string_lossy().to_string(), "/upload_to_db")) + .with_copy_to("/upload_to_db/test.csv", PathBuf::from("./testing/input/upload_to_db/test.csv")) .start() .await?; let host = container.get_host().await?;