Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Issue 2781413002: [Push API] Fix flaky PushEventNotificationWithoutEventWaitUntil (Closed)

Created:
3 years, 8 months ago by johnme
Modified:
3 years, 8 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, harkness+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -10 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
johnme
3 years, 8 months ago (2017-03-30 16:06:52 UTC) #2
Peter Beverloo
lgtm
3 years, 8 months ago (2017-03-31 00:40:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781413002/1
3 years, 8 months ago (2017-03-31 01:41:32 UTC) #5
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 02:36:56 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/bd8ddbe23babcdf02ecd0fc9efe8...

Powered by Google App Engine
This is Rietveld 408576698