Files
felhom.eu/hub/internal/notify/box_clock_operator_only_test.go
T
admin 88e636445a
gates / gates (push) Successful in 2m11s
hub (unreleased): the operator is told when a box's clock is more than one minute from the hub's (R-1384, D79)
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
2026-11-14 17:05:40 +01:00

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)
}
}
}