diff options
| author | Bryan C. Mills <bcmills@google.com> | 2019-10-22 12:44:44 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2019-10-22 17:34:15 +0000 |
| commit | 22278ca0d4f0ecdc5e9d2884b771062cbb3e837a (patch) | |
| tree | 7397c5228f9d0b0cf1e2670202a374410da14944 /src/sync/atomic | |
| parent | 51504f0a2d65a7f7fcf63c25c2cb306a6863d07d (diff) | |
| download | go-22278ca0d4f0ecdc5e9d2884b771062cbb3e837a.tar.xz | |
net: convert TestTCPServer to use subtests
My fix in CL 202618 inadvertently violated an invariant in the inner
loop of TestTCPServer (namely, that len(trchs) == i). That causes a
panic when one or more of the channels is omitted due to a flake.
Instead of trying to fix up the test, let's just factor out a subtest
and skip the whole thing if the transceiver's Dial flakes out.
Updates #32919
Change-Id: Ib6f274a44194311c8c5a2faf19f586cc9eccfd4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/202561
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/sync/atomic')
0 files changed, 0 insertions, 0 deletions
