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

Issue 23991002: Fix flaky CountingPolicyTest.CapReturns test (Closed)

Created:
7 years, 3 months ago by felt
Modified:
7 years, 3 months ago
Reviewers:
Matt Perry, mvrable
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, felt, extensions-reviews_chromium.org
Visibility:
Public.

Description

Fix flaky CountingPolicyTest.CapReturns test The CountingPolicyTest.CapReturns and FullStreamUIPolicyTest.CapReturns tests are occasionally flaking because the IO is slow and we have a low timeout of 5s set. This raises the timeout to 8s and makes sure the flush happens before our timeout starts. Shoutout to mvrable for figuring out what was going on. BUG=285823 NOTRY=true R=mpcomplete@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221516

Patch Set 1 #

Total comments: 3

Patch Set 2 : Increased timeout #

Patch Set 3 : Defined WaitOnThread #

Total comments: 1

Patch Set 4 : Compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M chrome/browser/extensions/activity_log/counting_policy_unittest.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
felt
Hi Matt, can you please review? Tiny Cl to fix a flaky test.
7 years, 3 months ago (2013-09-05 18:01:28 UTC) #1
mvrable
lgtm except for two small comments. Matt should still give this code a review. https://codereview.chromium.org/23991002/diff/1/chrome/browser/extensions/activity_log/counting_policy_unittest.cc ...
7 years, 3 months ago (2013-09-05 18:10:55 UTC) #2
felt
https://codereview.chromium.org/23991002/diff/1/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc File chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc (right): https://codereview.chromium.org/23991002/diff/1/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc#newcode123 chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc:123: FROM_HERE, timeout.callback(), base::TimeDelta::FromSeconds(5)); On 2013/09/05 18:10:55, mvrable wrote: > ...
7 years, 3 months ago (2013-09-05 18:17:56 UTC) #3
Matt Perry
LGTM https://codereview.chromium.org/23991002/diff/12001/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc File chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc (right): https://codereview.chromium.org/23991002/diff/12001/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc#newcode669 chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc:669: base::MessageLoop::current()->Run(); nit: use RunLoop instead. see https://code.google.com/p/chromium/codesearch#chromium/src/base/run_loop.h&q=RunUntilIdle&sq=package:chromium&type=cs&l=73
7 years, 3 months ago (2013-09-05 18:49:19 UTC) #4
Matt Perry
BTW it'll probably still be flaky with 8s, just less so. Is there any way ...
7 years, 3 months ago (2013-09-05 18:50:06 UTC) #5
mvrable
On 2013/09/05 18:50:06, Matt Perry wrote: > BTW it'll probably still be flaky with 8s, ...
7 years, 3 months ago (2013-09-05 19:02:21 UTC) #6
Matt Perry
On 2013/09/05 19:02:21, mvrable wrote: > On 2013/09/05 18:50:06, Matt Perry wrote: > > BTW ...
7 years, 3 months ago (2013-09-05 19:59:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/23991002/21001
7 years, 3 months ago (2013-09-05 21:09:17 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 21:11:14 UTC) #9
Message was sent while issue was closed.
Change committed as 221516

Powered by Google App Engine
This is Rietveld 408576698