mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
samples = append(samples, model.SamplePair{
|
for _, value := range retrievedValue.Value {
|
||||||
Value: model.SampleValue(*retrievedValue.Value[0].Value),
|
samples = append(samples, model.SamplePair{
|
||||||
Timestamp: indexable.DecodeTime(retrievedKey.Timestamp),
|
Value: model.SampleValue(*value.Value),
|
||||||
})
|
Timestamp: time.Unix(*value.Timestamp, 0),
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue