Skip to content

Commit

Permalink
fixup! refactor(hydroflow): rename two_pc -> two_pc_hf for collis…
Browse files Browse the repository at this point in the history
…ion with hf+ `two_pc` example
  • Loading branch information
MingweiSamuel committed Dec 7, 2024
1 parent 2f9ff9c commit 7d793c7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions hydroflow/examples/two_pc_hf/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,31 @@ fn test() {

use hydroflow::util::{run_cargo_example, wait_for_process_output};

const TEST_NAME: &str = "two_pc_hf";

let members_path = format!(
"{}/examples/two_pc/members.json",
env!("CARGO_MANIFEST_DIR")
"{}/examples/{}/members.json",
env!("CARGO_MANIFEST_DIR"),
TEST_NAME,
);

let (_coordinator, mut coordinator_stdin, mut coordinator_stdout) = run_cargo_example(
"two_pc",
TEST_NAME,
&format!("--path {members_path} --role coordinator --addr 127.0.0.1:12346"),
);

let (_subordinate1, _, mut subordinate1_stdout) = run_cargo_example(
"two_pc",
TEST_NAME,
&format!("--path {members_path} --role subordinate --addr 127.0.0.1:12347"),
);

let (_subordinate2, _, mut subordinate2_stdout) = run_cargo_example(
"two_pc",
TEST_NAME,
&format!("--path {members_path} --role subordinate --addr 127.0.0.1:12348"),
);

let (_subordinate3, _, mut subordinate3_stdout) = run_cargo_example(
"two_pc",
TEST_NAME,
&format!("--path {members_path} --role subordinate --addr 127.0.0.1:12349"),
);

Expand Down

0 comments on commit 7d793c7

Please sign in to comment.