diff --git a/src/control_plane.rs b/src/control_plane.rs index db1e6b4..dc4bb63 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -14889,6 +14889,7 @@ mod tests { panic!("expected serve") }; assert_eq!(options.incident_store, PathBuf::from("/tmp/i.cc")); + assert!(usage().contains("idunn status [--state-store PATH] [--incident-store PATH]")); let Command::Status { incident_store, .. } = parse(["status", "--incident-store", "/tmp/j.cc"].into_iter().map(str::to_owned)) .unwrap() diff --git a/src/incident.rs b/src/incident.rs index fa6f1a6..cd56c54 100644 --- a/src/incident.rs +++ b/src/incident.rs @@ -2,8 +2,8 @@ //! opened, and that it closed. //! //! One file, `incidents.cc`, holds one type. Idunn's daemon is its only writer, -//! at the site that decides the condition; it is also the file readers such as -//! Bifrost open, so no second copy exists to drift. It is never `control.cc`, +//! at the site that decides the condition; it is also the file external +//! readers open, so no second copy exists to drift. It is never `control.cc`, //! which refuses any type it does not know: a type added there would stop //! continuity for every target on a rollback. //! @@ -488,6 +488,8 @@ mod tests { #[test] fn closed_incidents_retire_to_history_after_retention() { + // The ruled retention: seven days. + assert_eq!(INCIDENT_RETENTION_MILLIS, 604_800_000); let temp = TempDir::new().unwrap(); let path = temp.path().join("incidents.cc"); let store = IncidentStore::new(&path);