Skip to content

Commit

Permalink
Fix json format problem
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Sep 13, 2023
1 parent 7e83d41 commit bea0fa3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions e2e/src/zookeeper_e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ pub async fn scaling_test(client: Client, zk_name: String) -> Result<(), Error>
"zookeeper",
"--type=json",
"-p",
"'[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 2}]'",
"[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 2}]",
])
.output()
.expect("failed to scale zk");
println!(
"scale output: {}",
"cmd output: {}",
String::from_utf8_lossy(&scale_output.stdout)
);
println!(
"scale error: {}",
"cmd error: {}",
String::from_utf8_lossy(&scale_output.stderr)
);

Expand Down Expand Up @@ -235,10 +235,18 @@ pub async fn scaling_test(client: Client, zk_name: String) -> Result<(), Error>
"zookeeper",
"--type=json",
"-p",
"'[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]'",
"[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]",
])
.output()
.expect("failed to scale zk");
println!(
"cmd output: {}",
String::from_utf8_lossy(&scale_output.stdout)
);
println!(
"cmd error: {}",
String::from_utf8_lossy(&scale_output.stderr)
);

loop {
sleep(Duration::from_secs(5)).await;
Expand Down

0 comments on commit bea0fa3

Please sign in to comment.