Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorawetz committed Mar 23, 2024
1 parent 9c33c4a commit 4a7e96c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl Connection {

#[cfg(test)]
mod tests {
use crate::db::{is_compatible, Connection, PkgStatus};
use crate::db::{is_compatible, update_rpm_database, Connection, PkgStatus};
use semver::{Version, VersionReq};

#[test]
Expand All @@ -275,6 +275,8 @@ mod tests {

#[test]
fn check_version_reqs() {
update_rpm_database().unwrap();

let mut db = Connection::new().unwrap();
// Fedora rawhide has rust-serde >= v1.0.188 and rust-serde_json >= v1.0.113
let info = db
Expand Down

0 comments on commit 4a7e96c

Please sign in to comment.