Skip to content

Commit

Permalink
[refactor]: Use free ports in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <[email protected]>
  • Loading branch information
Erigara committed Mar 6, 2024
1 parent e80aab1 commit c0dd13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/tests/integration/set_parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use test_network::*;

#[test]
fn can_change_parameter_value() -> Result<()> {
let (_rt, _peer, test_client) = <PeerBuilder>::new().with_port(10_810).start_with_runtime();
let (_rt, _peer, test_client) = <PeerBuilder>::new().with_port(11_265).start_with_runtime();
wait_for_genesis_committed(&vec![test_client.clone()], 0);

let parameter = Parameter::from_str("?BlockTime=4000")?;
Expand Down
2 changes: 1 addition & 1 deletion client/tests/integration/transfer_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn simulate_insufficient_funds() {

#[test]
fn simulate_transfer_store_asset() {
let (_rt, _peer, iroha_client) = <PeerBuilder>::new().with_port(10_805).start_with_runtime();
let (_rt, _peer, iroha_client) = <PeerBuilder>::new().with_port(11_260).start_with_runtime();
wait_for_genesis_committed(&[iroha_client.clone()], 0);
let (alice_id, mouse_id) = generate_two_ids();
let create_mouse = create_mouse(mouse_id.clone());
Expand Down

0 comments on commit c0dd13c

Please sign in to comment.