Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebear21 committed Nov 26, 2024
1 parent 5f320d5 commit aab44da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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 --test integration -- --nocapture
3 changes: 2 additions & 1 deletion payjoin/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,11 @@ mod integration {

async fn reserve_port() -> u16 {
let mut reserved_ports = RESERVED_PORTS.lock().await;
println!("reserving {:?}", &reserved_ports);
let listener = std::net::TcpListener::bind("0.0.0.0:0").unwrap();
let port = listener.local_addr().unwrap().port();
if reserved_ports.insert(port) {
println!("{:?}", &reserved_ports);
println!("reserved {:?}", &reserved_ports);
port
} else {
panic!("PORT RESERVED!!!");
Expand Down

0 comments on commit aab44da

Please sign in to comment.