Mark slow test as such and exclude them from travis.

This commit is contained in:
beorn7 2015-02-19 15:51:11 +01:00
parent 4627d59e8a
commit a7c56882af
2 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,7 @@ example_simple: source_path dependencies examples/simple/main.go
$(GO) build -o example_simple examples/simple/main.go
test: build
$(GO) test ./...
$(GO) test -short ./...
benchmark: build
$(GO) test -benchmem -test.bench="$(BENCHMARK_FILTER)" ./...

View File

@ -120,6 +120,10 @@ func BenchmarkSummaryWrite8(b *testing.B) {
}
func TestSummaryConcurrency(t *testing.T) {
if testing.Short() {
t.Skip("Skipping test in short mode.")
}
rand.Seed(42)
it := func(n uint32) bool {
@ -195,6 +199,10 @@ func TestSummaryConcurrency(t *testing.T) {
}
func TestSummaryVecConcurrency(t *testing.T) {
if testing.Short() {
t.Skip("Skipping test in short mode.")
}
rand.Seed(42)
objectives := make([]float64, 0, len(DefObjectives))