From 06fd7cf3ba5ea260449e3aa53223c171b1db1ee1 Mon Sep 17 00:00:00 2001 From: yeya24 Date: Mon, 6 Jan 2020 00:32:29 +0000 Subject: [PATCH] add tomb interval testcase Signed-off-by: yeya24 --- tsdb/tombstones/tombstones_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tsdb/tombstones/tombstones_test.go b/tsdb/tombstones/tombstones_test.go index 81a82c8c56..1f45f3f998 100644 --- a/tsdb/tombstones/tombstones_test.go +++ b/tsdb/tombstones/tombstones_test.go @@ -118,6 +118,11 @@ func TestAddingNewIntervals(t *testing.T) { new: Interval{11, 14}, 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 {