Fix CI build for upload to db test
Some checks failed
test / test (push) Has been cancelled

This commit is contained in:
2025-02-04 17:53:00 +10:30
parent 284375eb3f
commit 0cb75af2f0

View File

@@ -158,7 +158,7 @@ impl RunnableNode for UploadNodeRunner {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::path; use std::path::{self, PathBuf};
use crate::graph::node::RunnableNode; use crate::graph::node::RunnableNode;
use crate::graph::upload_to_db::{DBType, UploadNode, UploadNodeRunner}; 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_wait_for(WaitFor::message_on_stdout("Recovery is complete.".to_owned()))
.with_env_var("ACCEPT_EULA", "Y") .with_env_var("ACCEPT_EULA", "Y")
.with_env_var("MSSQL_SA_PASSWORD", "TestOnlyContainer123") .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() .start()
.await?; .await?;
let host = container.get_host().await?; let host = container.get_host().await?;