summaryrefslogtreecommitdiffstats
path: root/tests/detect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/detect.rs')
-rw-r--r--tests/detect.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/detect.rs b/tests/detect.rs
index 939dce1..e674c8a 100644
--- a/tests/detect.rs
+++ b/tests/detect.rs
@@ -230,7 +230,11 @@ fn a_viewed_review_is_frozen_and_a_fresh_one_opened() {
)?)
})
.unwrap();
- assert_eq!(old_state, candidate_state::SUPERSEDED);
+ assert_eq!(
+ CandidateState::parse(&old_state),
+ Some(CandidateState::Superseded),
+ "the frozen review must be superseded in the column, not only in memory"
+ );
}
#[test]
@@ -326,7 +330,7 @@ fn a_deleted_upstream_marks_the_subscription_and_alerts() {
let rep = check_pkgbase(&env.cfg, &env.db, "foo").unwrap();
assert!(matches!(rep.outcome, Outcome::Gone), "{:?}", rep.outcome);
let sub = db::get_subscription(&env.db, "foo").unwrap().unwrap();
- assert_eq!(sub.state, subscription_state::ORPHANED);
+ assert_eq!(sub.state, SubscriptionState::Orphaned);
assert!(db::list_notices(&env.db, false)
.unwrap()
.iter()