Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
transfer tests to root in order for them to run
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Jan 23, 2024
1 parent 8a02ee4 commit a4f120c
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ jobs:
run: cargo cache

- name: Build and run tests (linux & windows)
run: cd sdk && cargo test --locked --release -- --test-threads=1 --nocapture && cd .. && cargo test --locked --release -- --test-threads=1 --nocapture
run: cargo test --locked --release -- --test-threads=1 --nocapture
if: runner.os != 'macOS'

- name: Build and run tests (macOS)
run: cd sdk && cargo test --locked --release --no-default-features -- --test-threads=1 --nocapture && cd .. && cargo test --locked --release --no-default-features -- --test-threads=1 --nocapture
run: cargo test --locked --release --no-default-features -- --test-threads=1 --nocapture
if: runner.os == 'macOS'

- name: Clean unused artifacts
Expand Down
5 changes: 5 additions & 0 deletions Cargo.lock

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

13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ zeroize = "1.6.0"

[dev-dependencies]
rand = "0.8.5"
anyhow = "1"
clap = { version = "4", features = ["derive"] }
derive_builder = "0.12"
derive_more = "0.99"
fdlimit = "0.2"
futures = "0.3"
serde_json = "1"
subspace-farmer-components = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
tempfile = "3"
tokio = { version = "1.34.0", features = ["rt-multi-thread", "macros"] }
tracing = "0.1"
tracing-futures = "0.2"
tracing-subscriber = "0.3"

[features]
default = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ pub mod node {

pub use super::Node;
}

/// SDK utilities, mainly used by tests
pub mod utils {
pub use sdk_utils::*;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ use std::sync::Arc;

use derive_builder::Builder;
use derive_more::{Deref, DerefMut};
use sdk_node::DomainConfigBuilder;
use sdk_utils::ByteSize;
use subspace_sdk::farmer::FarmDescription;
use subspace_sdk::node::{chain_spec, ChainSpec, DsnBuilder, NetworkBuilder, Role};
use subspace_sdk::node::{
chain_spec, ChainSpec, DomainConfigBuilder, DsnBuilder, NetworkBuilder, Role,
};
use subspace_sdk::utils::ByteSize;
use subspace_sdk::MultiaddrWithPeerId;
use tempfile::TempDir;
use tracing_subscriber::layer::SubscriberExt;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use futures::prelude::*;
use sdk_utils::ByteSize;
use subspace_sdk::utils::ByteSize;

use crate::common::{Farmer, Node};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use futures::prelude::*;
use sdk_utils::ByteSize;
use subspace_sdk::utils::ByteSize;
use tempfile::TempDir;
use tracing_futures::Instrument;

Expand Down

0 comments on commit a4f120c

Please sign in to comment.