-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: disable running tests in parallel in Travis CI (#109)
Travis CI is slow and this makes tests that have timeouts flaky. We could increase the timeouts, but that would slow the feedback cycle of local development. Instead this commit disables running tests in parallel when the 'travis' build tag is provided (I had some spicier names for it, but I considering this is OSS 'travis' will do). Note: we do not rely on tests being parallel to identify race conditions - we do that explicitly and often.
- Loading branch information
1 parent
503d0e4
commit 656a958
Showing
7 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// +build travis | ||
|
||
package stats | ||
|
||
import "testing" | ||
|
||
// Travis CI is really slow - so don't run tests in parallel. | ||
func Parallel(t *testing.T) { /* no-op */ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// +build !travis | ||
|
||
package stats | ||
|
||
import "testing" | ||
|
||
func Parallel(t *testing.T) { t.Parallel() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters