Alerting: Fix ticker tests to not fail if channel is empty (#110538)
This commit is contained in:
1 parent
3051dd9d44
commit
7d32640179
1 file changed
-2
@@ -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{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user