Skip to content

Commit ba5b7f2

Browse files
thanmromaindoumenc
authored andcommitted
runtime/coverage: skip more tests in short mode
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]>
1 parent e292db5 commit ba5b7f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/runtime/coverage/emitdata_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import (
2222
const fixedTestDir = false
2323

2424
func TestCoverageApis(t *testing.T) {
25+
if testing.Short() {
26+
t.Skipf("skipping test: too long for short mode")
27+
}
2528
if !goexperiment.CoverageRedesign {
2629
t.Skipf("skipping new coverage tests (experiment not enabled)")
2730
}
@@ -388,6 +391,9 @@ func testEmitWithCounterClear(t *testing.T, harnessPath string, dir string) {
388391
}
389392

390393
func TestApisOnNocoverBinary(t *testing.T) {
394+
if testing.Short() {
395+
t.Skipf("skipping test: too long for short mode")
396+
}
391397
testenv.MustHaveGoBuild(t)
392398
dir := t.TempDir()
393399

0 commit comments

Comments
 (0)