Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
bc42cf68
Unverified
Commit
bc42cf68
authored
Jan 16, 2020
by
Ganesh Vernekar
Committed by
GitHub
Jan 16, 2020
Browse files
Merge pull request #6559 from yeya24/tomb-test
Add a tomb interval test case
parents
949e4d12
06fd7cf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tsdb/tombstones/tombstones_test.go
View file @
bc42cf68
...
@@ -118,6 +118,11 @@ func TestAddingNewIntervals(t *testing.T) {
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment