Skip to content

Commit

Permalink
tests: adjust if-else as without it will lead to failure since we are…
Browse files Browse the repository at this point in the history
… testing that raw cannot find a vendor tarball

Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Nov 5, 2024
1 parent a422bc4 commit 0caf1e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cargo/tests/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ async fn vendor_source(source: &str, filter: bool) -> io::Result<PathBuf> {
target: vendor_tarball_path.to_path_buf(),
outdir: Some(raw_outdir.clone()),
};
raw_opts(raw_args, false)?;
if *"https://github.com/elliot40404/bonk/archive/refs/tags/v0.3.2.tar.gz" != *source {
assert!(raw_opts(raw_args, false).is_ok());
} else {
assert!(raw_opts(raw_args, false).is_err());
}
let vendor_path = raw_outdir.join("vendor");
let cargo_config_path = raw_outdir.join(".cargo").join("config.toml");
let cargo_lock_path = raw_outdir.join("Cargo.lock");
Expand Down

0 comments on commit 0caf1e6

Please sign in to comment.