Skip to content

Commit

Permalink
internal/testenv: skip network tests only when -short is specified
Browse files Browse the repository at this point in the history
Change-Id: I157879f5204d543eb3fc81c212d563b146473ba8
Reviewed-on: https://go-review.googlesource.com/11232
Reviewed-by: Brad Fitzpatrick <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
  • Loading branch information
adg committed Jun 18, 2015
1 parent ee1ef8f commit e6d2112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/internal/testenv/testenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,7 @@ func HasExternalNetwork() bool {
// external (non-localhost) networks.
// If not, MustHaveExternalNetwork calls t.Skip with an explanation.
func MustHaveExternalNetwork(t *testing.T) {
t.Skipf("skipping test: no external network in -short mode")
if testing.Short() {
t.Skipf("skipping test: no external network in -short mode")
}
}

0 comments on commit e6d2112

Please sign in to comment.