Skip to content

Commit

Permalink
fix(test): run tests in series
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke committed Jan 10, 2025
1 parent e97def4 commit 4704f48
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions autonomi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ xor_name = "5.0.0"
alloy = { version = "0.7.3", default-features = false, features = ["contract", "json-rpc", "network", "node-bindings", "provider-http", "reqwest-rustls-tls", "rpc-client", "rpc-types", "signer-local", "std"] }
ant-logging = { path = "../ant-logging", version = "0.2.44" }
eyre = "0.6.5"
serial_test = "3.2.0"
sha2 = "0.10.6"
# Do not specify the version field. Release process expects even the local dev deps to be published.
# Removing the version field is a workaround.
Expand Down
3 changes: 3 additions & 0 deletions autonomi/tests/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use ant_logging::LogBuilder;
use autonomi::Client;
use eyre::Result;
use serial_test::serial;
use sha2::{Digest, Sha256};
use std::fs::File;
use std::io::{BufReader, Read};
Expand All @@ -20,6 +21,7 @@ use walkdir::WalkDir;
// With a local evm network, and local network, run:
// EVM_NETWORK=local cargo test --features="local" --package autonomi --test fs
#[tokio::test]
#[serial]
async fn dir_upload_download() -> Result<()> {
let _log_appender_guard =
LogBuilder::init_single_threaded_tokio_test("dir_upload_download", false);
Expand Down Expand Up @@ -75,6 +77,7 @@ fn compute_dir_sha256(dir: &str) -> Result<String> {
}

#[tokio::test]
#[serial]
async fn file_into_vault() -> Result<()> {
let _log_appender_guard = LogBuilder::init_single_threaded_tokio_test("file", false);

Expand Down

0 comments on commit 4704f48

Please sign in to comment.