Skip to content

Commit

Permalink
runtime/coverage: skip more tests in short mode
Browse files Browse the repository at this point in the history
Add more skips if short mode testing, since some of these tests
still seem to be timing out on smaller and more underpowered
builders.

Updates golang#56197.

Change-Id: I469d9fd3a6be5602243234562fa3fe6263968b56
Reviewed-on: https://go-review.googlesource.com/c/go/+/443376
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: David Chase <[email protected]>
Run-TryBot: Than McIntosh <[email protected]>
  • Loading branch information
thanm authored and romaindoumenc committed Nov 3, 2022
1 parent e292db5 commit ba5b7f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/coverage/emitdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import (
const fixedTestDir = false

func TestCoverageApis(t *testing.T) {
if testing.Short() {
t.Skipf("skipping test: too long for short mode")
}
if !goexperiment.CoverageRedesign {
t.Skipf("skipping new coverage tests (experiment not enabled)")
}
Expand Down Expand Up @@ -388,6 +391,9 @@ func testEmitWithCounterClear(t *testing.T, harnessPath string, dir string) {
}

func TestApisOnNocoverBinary(t *testing.T) {
if testing.Short() {
t.Skipf("skipping test: too long for short mode")
}
testenv.MustHaveGoBuild(t)
dir := t.TempDir()

Expand Down

0 comments on commit ba5b7f2

Please sign in to comment.