Fix TestDefinitionShape to assert ApplyToService

The checker no longer applies to whole domains (see 62af174 "Apply only
on opt-in services"); align the test with that availability.
This commit is contained in:
nemunaire 2026-05-21 18:52:19 +08:00
commit 7fe4e4b3a4

View file

@ -86,8 +86,8 @@ func TestDefinitionShape(t *testing.T) {
if def.ID != "happydeliver" {
t.Errorf("ID = %q", def.ID)
}
if !def.Availability.ApplyToDomain {
t.Error("should apply to domain")
if !def.Availability.ApplyToService {
t.Error("should apply to service")
}
if !def.HasMetrics {
t.Error("HasMetrics should be true")