From 4a7e96caeb947a9b7cd56656f1e18eb09a0e2fad Mon Sep 17 00:00:00 2001 From: Daniel Morawetz Date: Sat, 23 Mar 2024 23:08:04 +0100 Subject: [PATCH] Fix unit tests --- src/db.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 3979e4f..1219101 100644 --- a/src/db.rs +++ b/src/db.rs @@ -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] @@ -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