Improvements after review.

Change-Id: I484359282d4c7113518bbbb131f4f18383c08fdb
This commit is contained in:
Bjoern Rabenstein 2014-08-19 13:03:35 +02:00
parent 52c9dc43a3
commit dc2e463a97
1 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,7 @@ func TestChunk(t *testing.T) {
}
func TestGetValueAtTime(t *testing.T) {
samples := make(clientmodel.Samples, 50000)
samples := make(clientmodel.Samples, 1000)
for i := range samples {
samples[i] = &clientmodel.Sample{
Timestamp: clientmodel.Timestamp(2 * i),
@ -120,7 +120,7 @@ func TestGetValueAtTime(t *testing.T) {
}
func TestGetRangeValues(t *testing.T) {
samples := make(clientmodel.Samples, 50000)
samples := make(clientmodel.Samples, 1000)
for i := range samples {
samples[i] = &clientmodel.Sample{
Timestamp: clientmodel.Timestamp(2 * i),
@ -366,7 +366,6 @@ func createRandomSamples(r *rand.Rand) clientmodel.Samples {
}
for n := r.Intn(maxCycles); n >= 0; n-- {
// Pick a metric for this cycle.
metric := metrics[r.Intn(len(metrics))]
timeDelta := r.Intn(maxTimeDelta) + 1