chore: potential crash in unit tests
This commit is contained in:
parent
10f5ba62a2
commit
9080577f2b
|
|
@ -469,7 +469,10 @@ func TestTriggerUnknownActionTitleSkipsWithoutPanic(t *testing.T) {
|
||||||
case <-time.After(500 * time.Millisecond):
|
case <-time.After(500 * time.Millisecond):
|
||||||
}
|
}
|
||||||
assert.Len(t, got, 1, "only the triggering action runs; unknown trigger is skipped")
|
assert.Len(t, got, 1, "only the triggering action runs; unknown trigger is skipped")
|
||||||
assert.Equal(t, "Action with bad trigger", got[0])
|
|
||||||
|
if len(got) > 0 {
|
||||||
|
assert.Equal(t, "Action with bad trigger", got[0])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type executionFinishedCollector struct {
|
type executionFinishedCollector struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue