replace test ErrRangeCacheNotAllowed with ErrRangeCacheAllowed

This commit is contained in:
Travis Turner 2017-11-06 16:03:23 -06:00
parent 7e797efdc2
commit fee1b55838
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -136,6 +136,18 @@ func TestIndex_CreateFrame(t *testing.T) {
}
})
t.Run("ErrRangeCacheAllowed", func(t *testing.T) {
index := test.MustOpenIndex()
defer index.Close()
if _, err := index.CreateFrame("f", pilosa.FrameOptions{
RangeEnabled: true,
CacheType: pilosa.CacheTypeRanked,
}); err != nil {
t.Fatal(err)
}
})
t.Run("RangeEnabledWithCacheTypeNone", func(t *testing.T) {
index := test.MustOpenIndex()
defer index.Close()