forked from mirror/client_golang
Mark slow test as such and exclude them from travis.
This commit is contained in:
parent
4627d59e8a
commit
a7c56882af
2
Makefile
2
Makefile
|
@ -82,7 +82,7 @@ example_simple: source_path dependencies examples/simple/main.go
|
||||||
$(GO) build -o example_simple examples/simple/main.go
|
$(GO) build -o example_simple examples/simple/main.go
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
$(GO) test ./...
|
$(GO) test -short ./...
|
||||||
|
|
||||||
benchmark: build
|
benchmark: build
|
||||||
$(GO) test -benchmem -test.bench="$(BENCHMARK_FILTER)" ./...
|
$(GO) test -benchmem -test.bench="$(BENCHMARK_FILTER)" ./...
|
||||||
|
|
|
@ -120,6 +120,10 @@ func BenchmarkSummaryWrite8(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSummaryConcurrency(t *testing.T) {
|
func TestSummaryConcurrency(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 {
|
||||||
|
@ -195,6 +199,10 @@ func TestSummaryConcurrency(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSummaryVecConcurrency(t *testing.T) {
|
func TestSummaryVecConcurrency(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