mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use Prometheus' format for notification attempts durations (#56822)
This commit is contained in:
@@ -857,8 +857,8 @@ func TestNotificationChannels(t *testing.T) {
|
||||
|
||||
// If the receiver is not active, no attempts to send notifications should be registered.
|
||||
if expActive {
|
||||
// Prometheus' durations get rounded down, so we might end up with "0s" if we have values smaller than 1ms.
|
||||
require.NotZero(t, integration.LastNotifyAttempt)
|
||||
require.NotEqual(t, "0s", integration.LastNotifyAttemptDuration)
|
||||
} else {
|
||||
require.Zero(t, integration.LastNotifyAttempt)
|
||||
require.Equal(t, "0s", integration.LastNotifyAttemptDuration)
|
||||
|
||||
Reference in New Issue
Block a user