Skip to content

Commit

Permalink
feature gate whole file instead of function
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed Sep 19, 2023
1 parent e5558d5 commit 7b630a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ path = "src/tests/mixnet.rs"
[[test]]
name = "test_cli"
path = "src/tests/cli.rs"
# disseminate is only implemented for libp2p
required-features = ["libp2p"]

[[bench]]
name = "mixnet"
Expand Down
1 change: 0 additions & 1 deletion tests/src/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use tempfile::NamedTempFile;
use tests::{MixNode, Node, NomosNode, SpawnConfig};

#[tokio::test]
#[cfg(feature = "libp2p")]
async fn disseminate_blob() {
let (_mixnodes, mixnet_node_configs, mixnet_topology) = MixNode::spawn_nodes(2).await;
let mut nodes = NomosNode::spawn_nodes(SpawnConfig::Star {
Expand Down

0 comments on commit 7b630a8

Please sign in to comment.