derp: handle net.ErrClosed in TestSendFreeze
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
8e75c8504c
commit
4d142ebe06
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue