From 409f50bcf21453117a1c9f1c96d389e688028770 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Fri, 9 Aug 2024 02:23:07 +0000 Subject: [PATCH] fix: ci --- .github/workflows/rust.yml | 8 +++++--- crates/compute_unit_runner/src/ipc.rs | 9 --------- src/dbrepo/job_db_mongo.rs | 15 --------------- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ac59751..be21065 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,8 +20,10 @@ jobs: - name: Start minikube uses: medyagh/setup-minikube@latest - - name: Build - run: cargo build --verbose + - name: Build image + run: | + eval $(minikube -p minikube docker-env) + make minikube-docker - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --workspace diff --git a/crates/compute_unit_runner/src/ipc.rs b/crates/compute_unit_runner/src/ipc.rs index d0097a4..63277c1 100644 --- a/crates/compute_unit_runner/src/ipc.rs +++ b/crates/compute_unit_runner/src/ipc.rs @@ -666,15 +666,6 @@ mod tests { use std::env; use tracing_subscriber; - #[tokio::test] - async fn test_render() { - env::set_var("RUST_LOG", "DEBUG"); - tracing_subscriber::fmt::init(); - - let client = IPCClientImpl::new("/home/hunjixin/code/jz-action/test.d".to_string()); - client.request_avaiable_data().await.unwrap(); - } - #[tokio::test] async fn test_my_error() { { diff --git a/src/dbrepo/job_db_mongo.rs b/src/dbrepo/job_db_mongo.rs index d862e29..15365b4 100644 --- a/src/dbrepo/job_db_mongo.rs +++ b/src/dbrepo/job_db_mongo.rs @@ -299,18 +299,3 @@ impl DataRepo for MongoRunDbRepo { self.data_col.insert_one(record).await.map(|_| ()).anyhow() } } - -#[cfg(test)] -mod tests { - use super::*; - - fn is_send() - where - T: Send + Sync, - { - } - #[tokio::test] - async fn test_render() { - is_send::(); - } -}