Stochastic test support plural SampleValueSeries.
After SampleValue was refactored into SampleValueSeries, which involves plural values under a common super key, the stochastic test was never refreshed to reflect this reality. We had other tests that validated the functionality, but this one was insufficently forward-ported.
This commit is contained in:
parent
370da70470
commit
092c7bd88e
|
@ -233,10 +233,12 @@ func levelDBGetRangeValues(l *LevelDBMetricPersistence, fp model.Fingerprint, i
|
|||
return nil, err
|
||||
}
|
||||
|
||||
samples = append(samples, model.SamplePair{
|
||||
Value: model.SampleValue(*retrievedValue.Value[0].Value),
|
||||
Timestamp: indexable.DecodeTime(retrievedKey.Timestamp),
|
||||
})
|
||||
for _, value := range retrievedValue.Value {
|
||||
samples = append(samples, model.SamplePair{
|
||||
Value: model.SampleValue(*value.Value),
|
||||
Timestamp: time.Unix(*value.Timestamp, 0),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue