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.
This commit is contained in:
parent
61d4487606
commit
f075821cbb
|
@ -124,6 +124,10 @@ func BenchmarkHistogramWrite8(b *testing.B) {
|
||||||
var testBuckets = []float64{-2, -1, -0.5, 0, 0.5, 1, 2, math.Inf(+1)}
|
var testBuckets = []float64{-2, -1, -0.5, 0, 0.5, 1, 2, math.Inf(+1)}
|
||||||
|
|
||||||
func TestHistogramConcurrency(t *testing.T) {
|
func TestHistogramConcurrency(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("Skipping test in short mode.")
|
||||||
|
}
|
||||||
|
|
||||||
rand.Seed(42)
|
rand.Seed(42)
|
||||||
|
|
||||||
it := func(n uint32) bool {
|
it := func(n uint32) bool {
|
||||||
|
@ -198,6 +202,10 @@ func TestHistogramConcurrency(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHistogramVecConcurrency(t *testing.T) {
|
func TestHistogramVecConcurrency(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("Skipping test in short mode.")
|
||||||
|
}
|
||||||
|
|
||||||
rand.Seed(42)
|
rand.Seed(42)
|
||||||
|
|
||||||
objectives := make([]float64, 0, len(DefObjectives))
|
objectives := make([]float64, 0, len(DefObjectives))
|
||||||
|
|
Loading…
Reference in New Issue