diff options
author | Bryan C. Mills <bcmills@google.com> | 2022-01-28 16:18:22 -0500 |
---|---|---|
committer | Bryan Mills <bcmills@google.com> | 2022-02-01 20:55:43 +0000 |
commit | a6a7c7a1fd6a2450cfec11e54217e04dce843a54 (patch) | |
tree | b3549698684c17f7327da9ebd487e87baadeed07 /src/cmd/go/script_test.go | |
parent | 5522f8c8e6132fe36e4da74f6628a9d63f643d60 (diff) | |
download | go-a6a7c7a1fd6a2450cfec11e54217e04dce843a54.tar.gz go-a6a7c7a1fd6a2450cfec11e54217e04dce843a54.zip |
cmd/go: add detail to test failures
For #50892
Change-Id: I14ff1c43b39687a0ba5e668ee962cecfb49e4beb
Reviewed-on: https://go-review.googlesource.com/c/go/+/381836
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/script_test.go')
-rw-r--r-- | src/cmd/go/script_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go index 165d3308a8..722921f74c 100644 --- a/src/cmd/go/script_test.go +++ b/src/cmd/go/script_test.go @@ -902,7 +902,7 @@ func (ts *testScript) cmdStale(want simpleStatus, args []string) { tmpl := "{{if .Error}}{{.ImportPath}}: {{.Error.Err}}{{else}}" switch want { case failure: - tmpl += "{{if .Stale}}{{.ImportPath}} is unexpectedly stale{{end}}" + tmpl += "{{if .Stale}}{{.ImportPath}} is unexpectedly stale: {{.StaleReason}}{{end}}" case success: tmpl += "{{if not .Stale}}{{.ImportPath}} is unexpectedly NOT stale{{end}}" default: |