mirror of
https://github.com/prometheus/alertmanager
synced 2025-04-17 12:36:09 +00:00
Make example test more constrained
This commit is contained in:
parent
0539783eea
commit
25ee299cb9
@ -49,7 +49,7 @@ func TestSomething(t *testing.T) {
|
|||||||
// the defined time intervals.
|
// the defined time intervals.
|
||||||
co.Want(Between(2, 2.5), Alert("alertname", "test").Active(1))
|
co.Want(Between(2, 2.5), Alert("alertname", "test").Active(1))
|
||||||
co.Want(Between(3, 3.5), Alert("alertname", "test").Active(1))
|
co.Want(Between(3, 3.5), Alert("alertname", "test").Active(1))
|
||||||
co.Want(Between(3.5, 4.5), Alert("alertname", "test").Active(1, 3))
|
co.Want(Between(4, 4.5), Alert("alertname", "test").Active(1, 3))
|
||||||
|
|
||||||
// Start the flow as defined above and run the checks afterwards.
|
// Start the flow as defined above and run the checks afterwards.
|
||||||
at.Run()
|
at.Run()
|
||||||
|
Loading…
Reference in New Issue
Block a user