From dc2e463a97acb40f3afc3dd03b37c0a2b2049b0f Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Tue, 19 Aug 2014 13:03:35 +0200 Subject: [PATCH] Improvements after review. Change-Id: I484359282d4c7113518bbbb131f4f18383c08fdb --- storage/local/storage_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage/local/storage_test.go b/storage/local/storage_test.go index 66dd2427b..beeba5f7c 100644 --- a/storage/local/storage_test.go +++ b/storage/local/storage_test.go @@ -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