aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-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 429e03676c..573ef05fdc 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -731,7 +731,7 @@ func tRunner(t *T, fn func(t *T)) {
// a call to runtime.Goexit, record the duration and send
// a signal saying that the test is done.
defer func() {
- if t.failed {
+ if t.Failed() {
atomic.AddUint32(&numFailed, 1)
}