Skip to content

Commit

Permalink
Fix tests following additive feature changes (#450)
Browse files Browse the repository at this point in the history
#430 made some features additive, but didn't properly address the tests
to run under the minimal requirements nor the scripts to run the tests.

This fixes that
  • Loading branch information
DanGould authored Jan 2, 2025
2 parents d940ed2 + 4538929 commit 5bb9c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion payjoin/contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e

cargo test --locked --package payjoin --verbose --all-features --lib
cargo test --locked --package payjoin --verbose --features=send,receive --test integration
cargo test --locked --package payjoin --verbose --no-default-features --features=send,receive,_danger-local-https,v2 --test integration
cargo test --locked --package payjoin --verbose --no-default-features --features=send,receive,_danger-local-https,v2,io --test integration
4 changes: 2 additions & 2 deletions payjoin/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(all(feature = "send", feature = "receive", feature = "_danger-local-https"))]
#[cfg(all(feature = "send", feature = "receive"))]
mod integration {
use std::collections::HashMap;
use std::env;
Expand Down Expand Up @@ -171,7 +171,7 @@ mod integration {
}
}

#[cfg(all(feature = "io", feature = "v2"))]
#[cfg(all(feature = "io", feature = "v2", feature = "_danger-local-https"))]
mod v2 {
use std::sync::Arc;
use std::time::Duration;
Expand Down

0 comments on commit 5bb9c2d

Please sign in to comment.