hub (unreleased): the operator is told when a box's clock is more than one minute from the hub's (R-1384, D79)
gates / gates (push) Successful in 2m11s
gates / gates (push) Successful in 2m11s
The host report's new sent_at (the box clock at the moment of sending) is compared with the hub's clock at arrival. Both directions; told once; clears within 30 s. A report that waited on the box raises nothing (reported_at is not read). A second box off in the same direction points at the hub's own clock. Operator-only. Not deployed. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
26f4f7660c
commit
88e636445a
9 files changed
+318
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package notify
|
||||
|
||||
import "testing"
|
||||
|
||||
// R-1384 (D79): a box's clock against the hub's is the operator's to read; the household is never mailed about it.
|
||||
func TestBoxClockEventsAreOperatorOnly(t *testing.T) {
|
||||
for _, e := range []string{"box_clock_wrong", "box_clock_ok"} {
|
||||
if !operatorOnlyEvents[e] {
|
||||
t.Errorf("%s must be operator-only", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user