derp: handle net.ErrClosed in TestSendFreeze

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2021-04-12 14:45:09 -07:00 committed by Maisem Ali
parent 8e75c8504c
commit 4d142ebe06
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ func TestSendFreeze(t *testing.T) {
for i := 0; i < cap(errCh); i++ {
err := <-errCh
if err != nil {
if errors.Is(err, io.EOF) {
if errors.Is(err, io.EOF) || errors.Is(err, net.ErrClosed) {
continue
}
t.Error(err)