chore: potential crash in unit tests

This commit is contained in:
jamesread 2026-03-05 08:10:56 +00:00
parent 10f5ba62a2
commit 9080577f2b
1 changed files with 4 additions and 1 deletions

View File

@ -469,8 +469,11 @@ func TestTriggerUnknownActionTitleSkipsWithoutPanic(t *testing.T) {
case <-time.After(500 * time.Millisecond):
}
assert.Len(t, got, 1, "only the triggering action runs; unknown trigger is skipped")
if len(got) > 0 {
assert.Equal(t, "Action with bad trigger", got[0])
}
}
type executionFinishedCollector struct {
ch chan string