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
13 lines
352 B
Go
13 lines
352 B
Go
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)
|
|
}
|
|
}
|
|
}
|