mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: verify marshaling for iidx.pendingMetricIDs in TestInmemoryInvertedIndexMarshalUnmarshal
This commit is contained in:
parent
ca259864e2
commit
e14ab14e54
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue