Alerting: Fix ticker tests to not fail if channel is empty (#110538)

This commit is contained in:
Yuri Tseretyan
2025-09-03 16:21:47 -04:00
committed by GitHub
parent 3051dd9d44
commit 7d32640179
@@ -30,8 +30,6 @@ func TestTicker(t *testing.T) {
return tick
case <-ctx.Done():
require.Failf(t, fmt.Sprintf("%v", ctx.Err()), "timeout reading the channel")
default:
require.Failf(t, "channel is empty but it should have a tick", "")
}
return time.Time{}
}