Skip to content

Commit

Permalink
cli(minimal-cloud): don't run tembo apply twice (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel authored Oct 3, 2024
1 parent 86a422c commit 9e3b87a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions tembo-cli/src/cli/context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::fmt::Display;
use std::fs;

use anyhow::Error;
Expand Down Expand Up @@ -102,11 +103,11 @@ impl Profile {
}
}

impl ToString for Target {
fn to_string(&self) -> String {
impl Display for Target {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Docker => String::from("docker"),
Self::TemboCloud => String::from("tembo-cloud"),
Target::Docker => f.write_str("docker"),
Target::TemboCloud => f.write_str("tembo-cloud"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tembo-cli/tests/integration_tests_cloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ async fn minimal_cloud() -> Result<(), Box<dyn Error>> {
// tembo apply
let mut cmd = Command::cargo_bin(CARGO_BIN).unwrap();
cmd.arg("apply");
cmd.assert().success();

let output = cmd.output()?;
assert!(output.status.success(), "`tembo apply` did not succeed");

if output
.stdout
Expand Down

0 comments on commit 9e3b87a

Please sign in to comment.