]> Cypherpunks repositories - gostls13.git/commit
net: remove an arbitrary timeout in TestUDPReadSizeError
authorBryan C. Mills <bcmills@google.com>
Wed, 2 Feb 2022 22:09:28 +0000 (17:09 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 3 Feb 2022 05:57:46 +0000 (05:57 +0000)
commit475ce826b75f113aff2810f3d27cb861adee0caa
tree3e5fb6d81057dcf102aa1656765fefc9595c0482
parentd0a0606841937cd6dd1db7a95ebd9d6e7ad02d96
net: remove an arbitrary timeout in TestUDPReadSizeError

Looking at the condition actually exercised by the test it seems
unnecessary: assuming that the Write succeeds (checked earlier in the
test), the Read must have a nonzero number of bytes available to read
immediately. (That is not the case in TestUDPZeroByteBuffer, from
which this test appears to have been derived.)

Fixes #50870

Change-Id: Ia6040a2d5dc320f0b86ec9d6f6b91dc72e8f3b84
Reviewed-on: https://go-review.googlesource.com/c/go/+/382537
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/udpsock_test.go