From f075821cbb7abceef0c954aec6d1036ee2701594 Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Wed, 12 Aug 2015 17:51:21 -0400 Subject: [PATCH] Update histogram_test.go These tests are always timing out in our Jenkins CI environment. We have moved our timeout to 2 minutes. I have added a check for the short flag so other can skip these tests as we are until this can be identified. --- prometheus/histogram_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go index 855af46..11cf66b 100644 --- a/prometheus/histogram_test.go +++ b/prometheus/histogram_test.go @@ -124,6 +124,10 @@ func BenchmarkHistogramWrite8(b *testing.B) { var testBuckets = []float64{-2, -1, -0.5, 0, 0.5, 1, 2, math.Inf(+1)} func TestHistogramConcurrency(t *testing.T) { + if testing.Short() { + t.Skip("Skipping test in short mode.") + } + rand.Seed(42) it := func(n uint32) bool { @@ -198,6 +202,10 @@ func TestHistogramConcurrency(t *testing.T) { } func TestHistogramVecConcurrency(t *testing.T) { + if testing.Short() { + t.Skip("Skipping test in short mode.") + } + rand.Seed(42) objectives := make([]float64, 0, len(DefObjectives))