Chromium Code Reviews
Description[Push API] Fix flaky PushEventNotificationWithoutEventWaitUntil
PushMessagingBrowserTest.PushEventNotificationWithoutEventWaitUntil
was flaking occasionally with the final
EXPECT_TRUE(IsRegisteredKeepAliveEqualTo(false)); evaluating to false.
This was because the test's MessageLoopRunner was quitting once
the notification was shown, and the test was assuming that the push
message delivery would have finished by this point, but in reality
these two events race against each other.
This patch fixes the test to wait until both required events finish.
BUG=none
Review-Url: https://codereview.chromium.org/2781413002
Cr-Commit-Position: refs/heads/master@{#461002}
Committed: https://chromium.googlesource.com/chromium/src/+/bd8ddbe23babcdf02ecd0fc9efe85023e92dff4d
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|
||||||||||||||||||||||||||||