Pin the incident retention and the status usage; keep transport names out of src
The retention constant and the usage line survived mutation untested. The incident module doc named the delivery service, which the no-transport grep over src/ must not find. Builds. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7f7528b33e
commit
855ccf8247
2 changed files with 5 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue