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" { if def.ID != "happydeliver" {
t.Errorf("ID = %q", def.ID) t.Errorf("ID = %q", def.ID)
} }
if !def.Availability.ApplyToDomain { if !def.Availability.ApplyToService {
t.Error("should apply to domain") t.Error("should apply to service")
} }
if !def.HasMetrics { if !def.HasMetrics {
t.Error("HasMetrics should be true") t.Error("HasMetrics should be true")