summaryrefslogtreecommitdiff
path: root/device/device.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-02-03 08:26:27 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-03 17:45:22 +0100
commit91617b4c522eaa034d39b208edc8221ba52e0954 (patch)
tree9a0a613d027c96ffb082f8f1d415daa19e2f96bd /device/device.go
parent7258a8973dfb2e3069fe1a8364966cfaadbdb4e1 (diff)
downloadwireguard-go-91617b4c522eaa034d39b208edc8221ba52e0954.tar.gz
wireguard-go-91617b4c522eaa034d39b208edc8221ba52e0954.zip
device: fix goroutine leak test
The leak test had rare flakes. If a system goroutine started at just the wrong moment, you'd get a false positive. Instead of looping until the goroutines look good and then checking, exit completely as soon as the number of goroutines looks good. Also, check more frequently, in an attempt to complete faster. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/device.go')
0 files changed, 0 insertions, 0 deletions