Fix TSI MeasurementExists() test.

pull/9315/head
Ben Johnson 2018-01-15 08:28:53 -07:00
parent ee8d9e41f0
commit cc30abcae6
No known key found for this signature in database
GPG Key ID: 81741CD251883081
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ func TestIndex_MeasurementExists(t *testing.T) {
// Delete second series.
tags.Set([]byte("region"), []byte("west"))
sid = idx.Index.SeriesFile().SeriesID(name, tags, nil)
if sid == 0 {
t.Fatalf("got 0 series id for %s/%v", name, tags)
}
if err := idx.DropSeries(sid, models.MakeKey(name, tags), 0); err != nil {
t.Fatal(err)
}