]> Cypherpunks repositories - gostls13.git/commit
testing: fix racey access to t.failed
authorAnmol Sethi <me+git@anmol.io>
Sun, 18 Mar 2018 06:36:40 +0000 (02:36 -0400)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 May 2018 17:51:26 +0000 (17:51 +0000)
commiteff1e68528fc9052a7ff1ac7afe222696f85db8c
tree13f028e5dccf0c118fcd0d5b7f2f5cc99f9e2227
parent0dcdbc772e62bf76b4468c288372b255dd18f4d8
testing: fix racey access to t.failed

We need to grab the mutex before we can access it.

Fixes #24438

Change-Id: Idd6130036691acec5bc5f8b40d6884f8db1d9d3c
Reviewed-on: https://go-review.googlesource.com/101283
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/testing.go