Skip to content

Commit f594991

Browse files
committed
Reorder assertions for a more clear error message
1 parent 97e2f7f commit f594991

File tree

1 file changed

+2
-2
lines changed
  • cargo-auditable/tests

1 file changed

+2
-2
lines changed

cargo-auditable/tests/it.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ fn test_proc_macro_inner(sbom: bool) {
591591
#[test]
592592
fn test_dependency_unification() {
593593
test_dependency_unification_inner(false);
594-
//test_dependency_unification_inner(true); // TODO: this fails, I wonder why?
594+
//test_dependency_unification_inner(true); // TODO: this fails!
595595
}
596596

597597
fn test_dependency_unification_inner(sbom: bool) {
@@ -605,12 +605,12 @@ fn test_dependency_unification_inner(sbom: bool) {
605605
let toplevel_crate_bin = &bins.get("top_level_crate").unwrap()[0];
606606
let dep_info = get_dependency_info(toplevel_crate_bin);
607607
eprintln!("{toplevel_crate_bin} dependency info: {dep_info:?}");
608-
assert!(dep_info.packages.len() == 2);
609608
// optional_transitive_dep should not be present, it's only reachable through dev-dependencies
610609
assert!(!dep_info
611610
.packages
612611
.iter()
613612
.any(|p| p.name == "optional_transitive_dep"));
613+
assert!(dep_info.packages.len() == 2);
614614
}
615615

616616
#[test]

0 commit comments

Comments
 (0)