mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing: fixed bug introduced by CL 21504
This broke T.Run Change-Id: I12c8fe3612f3fa2caa83049c1c7003056daf2b0c Reviewed-on: https://go-review.googlesource.com/21600 Run-TryBot: Marcel van Lohuizen <mpvl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
d70cb46f0f
commit
63cea5ac2b
2 changed files with 25 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ func (t *T) Run(name string, f func(t *T)) bool {
|
|||
if t.chatty {
|
||||
// Print directly to root's io.Writer so there is no delay.
|
||||
root := t.parent
|
||||
for ; root.parent != nil; root = t.parent {
|
||||
for ; root.parent != nil; root = root.parent {
|
||||
}
|
||||
fmt.Fprintf(root.w, "=== RUN %s\n", t.name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue