Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Aug 9, 2024
1 parent 78c14ed commit 409f50b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions crates/compute_unit_runner/src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
{
Expand Down
15 changes: 0 additions & 15 deletions src/dbrepo/job_db_mongo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>()
where
T: Send + Sync,
{
}
#[tokio::test]
async fn test_render() {
is_send::<MongoRunDbRepo>();
}
}

0 comments on commit 409f50b

Please sign in to comment.