Commit cff086b
committed
fix(processor): prevent panic in silence region test by using fatalf
Replace t.Errorf with t.Fatalf at line 692 in
TestFindBestSilenceRegion_LateCandidateDiscoverable. The test checks
that candidates is non-empty before indexing; using Errorf logs failure
but continues to the unsafe access, causing a panic. Fatalf stops
immediately with a clear message if the assertion fails.
Signed-off-by: Martin Wimpress <code@wimpress.io>1 parent 9cecb95 commit cff086b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
0 commit comments