aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2016-04-06 09:59:32 +0200
committerMarcel van Lohuizen <mpvl@golang.org>2016-04-06 17:10:33 +0000
commit63cea5ac2b8ed0cf257c7bfe7ed13bdd42373a0c (patch)
tree3f3d5f8319d1fa1d4412c7682f143a4880332d4c /src/testing/testing.go
parentd70cb46f0fde56ec0147c5cc679714fd63cb10bb (diff)
downloadgo-63cea5ac2b8ed0cf257c7bfe7ed13bdd42373a0c.tar.xz
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>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 8e16db321d..3a7a135a3c 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -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)
}