Remove brittle and duplicate test assertions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user