diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91b2f0a..00ff627 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: fmt --all --check, check --all-targets --all-features, clippy --all-targets --all-features -- -D warnings, - test --all-targets --all-features + test --all-targets --all-features --workspace ] steps: - uses: actions/checkout@v4 diff --git a/state-reconstruct-storage/src/reconstruction.rs b/state-reconstruct-storage/src/reconstruction.rs index e5dabaa..a50b16d 100644 --- a/state-reconstruct-storage/src/reconstruction.rs +++ b/state-reconstruct-storage/src/reconstruction.rs @@ -119,9 +119,11 @@ mod tests { use super::*; + const TEST_DB_PATH: &str = "snapshot_test_db"; + #[test] fn basics() { - let db_dir = PathBuf::from("./test_inner_db"); + let db_dir = PathBuf::from(TEST_DB_PATH); { let db = ReconstructionDatabase::new(db_dir.clone()).unwrap(); let zero = db.get_last_repeated_key_index().unwrap(); diff --git a/state-reconstruct-storage/src/snapshot.rs b/state-reconstruct-storage/src/snapshot.rs index 9d03f52..a26f2ac 100644 --- a/state-reconstruct-storage/src/snapshot.rs +++ b/state-reconstruct-storage/src/snapshot.rs @@ -200,9 +200,11 @@ mod tests { use super::*; + const TEST_DB_PATH: &str = "reconstruction_test_db"; + #[test] fn basics() { - let db_dir = PathBuf::from("./test_inner_db"); + let db_dir = PathBuf::from(TEST_DB_PATH); { let db = SnapshotDatabase::new(db_dir.clone()).unwrap(); let zero = db.get_last_repeated_key_index().unwrap();