From 082f4eb005dcbccfeca9e099d9714ec25a895261 Mon Sep 17 00:00:00 2001 From: rishflab Date: Fri, 11 Dec 2020 17:35:03 +1100 Subject: [PATCH] Use unused port in refund test --- swap/tests/e2e.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swap/tests/e2e.rs b/swap/tests/e2e.rs index 9fa7aa09..b53f7645 100644 --- a/swap/tests/e2e.rs +++ b/swap/tests/e2e.rs @@ -39,6 +39,7 @@ async fn happy_path() { let xmr_alice = xmr_to_swap * 10; let xmr_bob = xmr_btc::monero::Amount::from_piconero(0); + // todo: This should not be hardcoded let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9876" .parse() .expect("failed to parse Alice's address"); @@ -143,6 +144,7 @@ async fn alice_punishes_if_bob_never_acts_after_fund() { let alice_btc_starting_balance = bitcoin::Amount::ZERO; let alice_xmr_starting_balance = xmr_to_swap * 10; + // todo: This should not be hardcoded let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9877" .parse() .expect("failed to parse Alice's address"); @@ -263,7 +265,8 @@ async fn both_refund() { let alice_btc_starting_balance = bitcoin::Amount::ZERO; let alice_xmr_starting_balance = xmr_to_swap * 10; - let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9877" + // todo: This should not be hardcoded + let alice_multiaddr: Multiaddr = "/ip4/127.0.0.1/tcp/9879" .parse() .expect("failed to parse Alice's address");