lib/storage: verify marshaling for iidx.pendingMetricIDs in TestInmemoryInvertedIndexMarshalUnmarshal

This commit is contained in:
Aliaksandr Valialkin 2019-11-13 13:35:24 +02:00
parent ca259864e2
commit e14ab14e54

View file

@ -14,6 +14,10 @@ func TestInmemoryInvertedIndexMarshalUnmarshal(t *testing.T) {
k := fmt.Sprintf("key %d", i%keysCount)
iidx.addMetricIDLocked([]byte(k), uint64(i))
}
for i := 0; i < 10; i++ {
metricID := uint64(i * 43)
iidx.pendingMetricIDs = append(iidx.pendingMetricIDs, metricID)
}
data := iidx.Marshal(nil)