@@ -17,18 +17,24 @@ async fn main() -> eyre::Result<()> {
|
||||
.with_exec(vec!["churn-server", "serve", "--host", "0.0.0.0:3000"])
|
||||
.with_exposed_port(3000);
|
||||
|
||||
cli.with_service_binding("churn-agent", agent.id().await?)
|
||||
let churning = cli
|
||||
.with_service_binding("churn-agent", agent.id().await?)
|
||||
.with_service_binding("churn-server", server.id().await?)
|
||||
.with_exec(vec![
|
||||
"churn",
|
||||
"health",
|
||||
"--server",
|
||||
"churn-server:3000",
|
||||
"http://churn-server:3000",
|
||||
"--agent",
|
||||
"churn-agent:3000",
|
||||
])
|
||||
.exit_code()
|
||||
.await?;
|
||||
"http://churn-agent:3000",
|
||||
]);
|
||||
|
||||
let stdout = churning.stdout().await?;
|
||||
println!("{stdout}");
|
||||
let stderr = churning.stderr().await?;
|
||||
println!("{stderr}");
|
||||
|
||||
churning.exit_code().await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user