Tentative fix for flaky PaymentRequest tests on Mac10.11
* Both PaymentRequestContactInfoEditorTest and PaymentRequestShippingAddressEditorTest are flaky on Mac10.11. The flake output[1] shows that OnPersonalDataChanged is called twice, the first call is unexpected and happens before the profile is created, so the test fails. * Local debugging shows that OnPersonalDataChanged is always called twice when the test runs, but only the second call is meant to be observed. * A possible cause is the persistent observer between tests and not removing the observer from the PersonalDataManager. This is a tentative fix to make the observer local to each test and remove it after the event. * Could not repro the flake with this fix after 7 tries on mac_chromium_10.11_rel_ng (note this bot consistently fails for unrelated tests). [1] https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8863274960955528464/+/steps/browser_tests_on__none__GPU_on_Mac_on_Mac-10.11/0/logs/Deterministic_failure:_PaymentRequestShippingAddressEditorTest.AsyncData__status_FAILURE_/0 Bug: 1164438 Change-Id: Ia3e3f4f360f0b58a42a7816616aa8c697047dd60 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580303Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Commit-Queue: Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#844600}
Showing
Please register or sign in to comment