Issue metadata
Sign in to add a comment
|
TCPSocketTest.CancelPendingReadIfReady consistently fails under Fuchsia/x64/FYI bot |
||||||||||||||||||||||
Issue descriptionThis fails 100% of the time, e.g. https://ci.chromium.org/buildbot/chromium.fyi/Fuchsia/17123 has: 6707/30565] TCPSocketTest.DestroyWithPendingWrite (302 ms) [ RUN ] TCPSocketTest.CancelPendingReadIfReady ../../net/socket/tcp_socket_unittest.cc:583: Failure Expected equality of these values: msg_size Which is: 6 read_callback2.GetResult(read_result) Which is: 0 Stack trace: #00: testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) at gtest.cc:? #01: testing::internal::AssertHelper::operator=(testing::Message const&) const at gtest.cc:? #02: net::(anonymous namespace)::TCPSocketTest_CancelPendingReadIfReady_Test::TestBody() at tcp_socket_unittest.cc:? [ FAILED ] TCPSocketTest.CancelPendingReadIfReady (68 ms) The test appears to have been failing since it was added by https://chromium-review.googlesource.com/c/chromium/src/+/1050025.
,
May 9 2018
I am able to trivially repro the same failure under Linux as under Fuchsia, if I swap the order of the write and ReadIfReady calls. Looking at the ReadIfReady() API comments, the test just doesn't cope correctly with this API's ERR_IO_PENDING semantics.
,
May 9 2018
,
May 9 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1c67dcbe6e22b3111346f19cbf0c5cc5764a9b8c commit 1c67dcbe6e22b3111346f19cbf0c5cc5764a9b8c Author: Wez <wez@chromium.org> Date: Wed May 09 10:48:34 2018 Fix ReadIfReady() calls in new CancelPendingReadIfReady test. ReadIfReady() either completes synchronously, or notifies the caller when it should be called again, rather than completing asynchronously. Bug: 841180 TBR: xunjieli Change-Id: I70258381380feea49279cb81a7f285f2b1d11f01 Reviewed-on: https://chromium-review.googlesource.com/1051447 Commit-Queue: Wez <wez@chromium.org> Reviewed-by: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#557140} [modify] https://crrev.com/1c67dcbe6e22b3111346f19cbf0c5cc5764a9b8c/net/socket/tcp_socket_unittest.cc
,
May 9 2018
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by w...@chromium.org
, May 9 2018