We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e06f32e commit 835b3edCopy full SHA for 835b3ed
1 file changed
src/main.rs
@@ -64,16 +64,15 @@ mod tests {
64
#[test]
65
fn test_lookup_command_output() {
66
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());
68
let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
69
path.push("target");
70
- path.push(&profile);
+ path.push("debug");
71
path.push("cloudcheck");
72
path.to_string_lossy().to_string()
73
});
74
let mut cmd = Command::new(bin_path);
75
cmd.args(["lookup", "8.8.8.8"]);
76
- let output = cmd.output().unwrap();
+ let output = cmd.output().expect("Failed to execute cloudcheck command");
77
78
assert!(output.status.success());
79
0 commit comments