Remove brittle and duplicate test assertions

This commit is contained in:
2026-12-02 21:10:04 +00:00
parent 17f930b8d5
commit d3b4f25f71
5 changed files with 42 additions and 42 deletions

View File

@@ -110,7 +110,13 @@ narratio:
t.Fatalf("campaign validation lost its native error: %v", err)
}
findings := loadError.Diagnostics()
if len(findings) == 0 || findings[0].Code != configkit.CodeValidateError || findings[0].Path.String() != "/narratio/inputs/speakers_file" {
found := false
for _, finding := range findings {
if finding.Code == configkit.CodeValidateError && finding.Path.String() == "/narratio/inputs/speakers_file" {
found = true
}
}
if !found {
t.Fatalf("campaign validation findings = %+v", findings)
}
}