mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
add tomb interval testcase
Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
parent
1637ad2717
commit
06fd7cf3ba
|
@ -118,6 +118,11 @@ func TestAddingNewIntervals(t *testing.T) {
|
||||||
new: Interval{11, 14},
|
new: Interval{11, 14},
|
||||||
exp: Intervals{{5, 20}, {25, 30}},
|
exp: Intervals{{5, 20}, {25, 30}},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
exist: Intervals{{5, 10}, {12, 20}, {25, 30}},
|
||||||
|
new: Interval{1, 3},
|
||||||
|
exp: Intervals{{1, 3}, {5, 10}, {12, 20}, {25, 30}},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
|
|
Loading…
Reference in a new issue