IPCMojoBootstrapTest.ReceiveEmptyMessage test is inherently flaky |
|||
Issue descriptionThe IPCMojoBootstrapTest.ReceiveEmptyMessage test is likely to flake, since it: 1. Launches a child process and SetPeerPid()s to it. 2. Has the child process also SetPeerPid(), back to the parent. 3. In both processes execute a QuitClosure() in response to SetPeerPid(). 4. _after_ calling SetPeerPid() in the child process, calls Receive() in the parent. The test is therefore dependent on the MessagePumpForIO seeing the I/O event from the Receive() message before it gets around to actually acting on the QuitClosure. Introducing any delay between the SetPeerPid() and Receive() calls in the child process will cause the test to fail, now that it explicitly verifies that a message was received, if expected. Previously the test would have passed despite the specified expectation not having been met.
,
Mar 13 2018
rockot: The broken ReceiveEmptyMessage test was added in December by https://chromium-review.googlesource.com/c/chromium/src/+/800076. The simplest fix is probably just to have both this and the Connect test set up to quit the RunLoop only when the child closes the underlying mojo::edk::Channel. WDYT?
,
Mar 27 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/146d089c5cea00d18cfd772f7641acb0c036f699 commit 146d089c5cea00d18cfd772f7641acb0c036f699 Author: Ken Rockot <rockot@chromium.org> Date: Tue Mar 27 03:31:07 2018 Fix and re-enable IPCMojoBootstrapTest.ReceiveEmptyMessage Lets the test run longer (i.e. until the child actually closes its Channel) before asserting that we receive a message from the child. Bug: 821254 Change-Id: I629d994baf5655899dbd95177b997b97fd112e32 Reviewed-on: https://chromium-review.googlesource.com/981445 Commit-Queue: Ken Rockot <rockot@chromium.org> Reviewed-by: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#545972} [modify] https://crrev.com/146d089c5cea00d18cfd772f7641acb0c036f699/ipc/ipc_mojo_bootstrap_unittest.cc
,
Mar 27 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Mar 13 2018