Skip to content

Commit 76a2e8f

Browse files
authored
tests/publish: Fix broken assertion (#6796)
Merging without a rebase in between... always fun... thank you to CI for catching this! 😅
1 parent 815a24e commit 76a2e8f

File tree

2 files changed

+5
-87
lines changed

2 files changed

+5
-87
lines changed

src/tests/http-data/krate_publish_new_krate_with_empty_readme.json

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/tests/krate/publish.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,11 @@ fn new_krate_with_empty_readme() {
661661
assert_eq!(json.krate.name, "foo_readme");
662662
assert_eq!(json.krate.max_version, "1.0.0");
663663

664-
let files = app.stored_files();
665-
assert_eq!(files, vec!["crates/foo_readme/foo_readme-1.0.0.crate"]);
664+
let expected_files = vec![
665+
"crates/foo_readme/foo_readme-1.0.0.crate",
666+
"index/fo/o_/foo_readme",
667+
];
668+
assert_eq!(app.stored_files(), expected_files);
666669
}
667670

668671
#[test]

0 commit comments

Comments
 (0)