Skip to content

Commit a7c5688

Browse files
author
beorn7
committed
Mark slow test as such and exclude them from travis.
1 parent 4627d59 commit a7c5688

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ example_simple: source_path dependencies examples/simple/main.go
8282
$(GO) build -o example_simple examples/simple/main.go
8383

8484
test: build
85-
$(GO) test ./...
85+
$(GO) test -short ./...
8686

8787
benchmark: build
8888
$(GO) test -benchmem -test.bench="$(BENCHMARK_FILTER)" ./...

prometheus/summary_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ func BenchmarkSummaryWrite8(b *testing.B) {
120120
}
121121

122122
func TestSummaryConcurrency(t *testing.T) {
123+
if testing.Short() {
124+
t.Skip("Skipping test in short mode.")
125+
}
126+
123127
rand.Seed(42)
124128

125129
it := func(n uint32) bool {
@@ -195,6 +199,10 @@ func TestSummaryConcurrency(t *testing.T) {
195199
}
196200

197201
func TestSummaryVecConcurrency(t *testing.T) {
202+
if testing.Short() {
203+
t.Skip("Skipping test in short mode.")
204+
}
205+
198206
rand.Seed(42)
199207

200208
objectives := make([]float64, 0, len(DefObjectives))

0 commit comments

Comments
 (0)