Chromium Code Reviews
DescriptionFixing Intermittent SecurityKey Unittest Failures
This issue was introduced with the move from IPC to Mojo. The problem
occurs when tests requiring IPC Support run back to back, running them
individually is fine. In the error scenario, the IPC Server class fails
to create a Mojo channel. This appears to be a result of initializing a
new IPC Support object before every test is executed and cleaning it up
afterwards. The cleanup is asynchronous and can cause problems with the
subsequent test run.
My solution is to initialize the IPC Support object before the call to
execute tests, that way the setup and cleanup only occurs once per test
suite run and we don't hit these race conditions. This looks like a
common pattern in other unit tests in Chromium.
BUG=686922
Review-Url: https://codereview.chromium.org/2663103003
Cr-Commit-Position: refs/heads/master@{#448650}
Committed: https://chromium.googlesource.com/chromium/src/+/a7c4f961c4f1e8724dc7cb05552aa30b2c58fa9a
Patch Set 1 #Patch Set 2 : Fix windows unittests #Patch Set 3 : Fixing some threading issues in the current unit tests. #
Total comments: 6
Patch Set 4 : Addressing CR Feedback #Patch Set 5 : Addressing more feedback #
Messages
Total messages: 35 (26 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||