Skip to content

Commit

Permalink
cmd/go: skip the 'git' part of get_insecure_redirect in short mode
Browse files Browse the repository at this point in the history
Invoking 'git' adds about 200ms to this test on a fast machine,
probably more on a slow one. (As a general habit we skip the
'git' tests uniformly in short mode.)

For golang#52545.

Change-Id: Iea6d86a8c9c8b0f1fe51888faf7f5fe7dd8f1eb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/488236
Auto-Submit: Bryan Mills <[email protected]>
Reviewed-by: Than McIntosh <[email protected]>
Run-TryBot: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
Bryan C. Mills committed Apr 27, 2023
1 parent 42f558b commit 954ff15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/go/testdata/script/get_insecure_redirect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ env GO111MODULE=off
! go get -d vcs-test.golang.org/insecure/go/insecure
stderr 'redirected .* to insecure URL'

[short] stop 'builds a git repo'

env GOINSECURE=vcs-test.golang.org/insecure/go/insecure
go get -d vcs-test.golang.org/insecure/go/insecure

0 comments on commit 954ff15

Please sign in to comment.