mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-26 16:12:20 +00:00
Fix formatting
This commit is contained in:
parent
0b4d58fbdb
commit
8ee78e0e53
@ -45,27 +45,34 @@ func TestDedupingNotifier(t *testing.T) {
|
||||
now := time.Now()
|
||||
|
||||
alerts := []*types.Alert{
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "1"},
|
||||
}},
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "2"},
|
||||
}},
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "3"},
|
||||
EndsAt: now.Add(-20 * time.Minute),
|
||||
}},
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "4"},
|
||||
EndsAt: now.Add(-10 * time.Minute),
|
||||
}},
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "5"},
|
||||
EndsAt: now.Add(-10 * time.Minute),
|
||||
}},
|
||||
{Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "6"},
|
||||
}},
|
||||
{
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "1"},
|
||||
},
|
||||
}, {
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "2"},
|
||||
},
|
||||
}, {
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "3"},
|
||||
EndsAt: now.Add(-20 * time.Minute),
|
||||
},
|
||||
}, {
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "4"},
|
||||
EndsAt: now.Add(-10 * time.Minute),
|
||||
},
|
||||
}, {
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "5"},
|
||||
EndsAt: now.Add(-10 * time.Minute),
|
||||
},
|
||||
}, {
|
||||
Alert: model.Alert{
|
||||
Labels: model.LabelSet{"alertname": "6"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var fps []model.Fingerprint
|
||||
|
Loading…
Reference in New Issue
Block a user