Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Nov 9, 2024
1 parent 740065a commit 946ddfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ mod tests {
assert!(pkg.join("info/index.json").exists());
let index_json: HashMap<String, serde_json::Value> =
serde_json::from_slice(&std::fs::read(pkg.join("info/index.json")).unwrap()).unwrap();
assert!(index_json.contains_key("depends"));
assert!(!index_json.contains_key("depends"));
}

#[test]
Expand All @@ -253,7 +253,7 @@ mod tests {
assert!(pkg.join("info/index.json").exists());
let index_json: HashMap<String, serde_json::Value> =
serde_json::from_slice(&std::fs::read(pkg.join("info/index.json")).unwrap()).unwrap();
assert!(index_json.contains_key("depends"));
assert!(!index_json.contains_key("depends"));
}

fn get_package(folder: impl AsRef<Path>, mut glob_str: String) -> PathBuf {
Expand Down

0 comments on commit 946ddfe

Please sign in to comment.