Skip to content

Commit 835b3ed

Browse files
tests
1 parent e06f32e commit 835b3ed

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,15 @@ mod tests {
6464
#[test]
6565
fn test_lookup_command_output() {
6666
let bin_path = std::env::var("CARGO_BIN_EXE_cloudcheck").unwrap_or_else(|_| {
67-
let profile = std::env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
6867
let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
6968
path.push("target");
70-
path.push(&profile);
69+
path.push("debug");
7170
path.push("cloudcheck");
7271
path.to_string_lossy().to_string()
7372
});
7473
let mut cmd = Command::new(bin_path);
7574
cmd.args(["lookup", "8.8.8.8"]);
76-
let output = cmd.output().unwrap();
75+
let output = cmd.output().expect("Failed to execute cloudcheck command");
7776

7877
assert!(output.status.success());
7978

0 commit comments

Comments
 (0)