Skip to content

Commit

Permalink
Attempted fix for P3ASchedulerTest.Random test failure: increase time…
Browse files Browse the repository at this point in the history
… period to reduce risk of upload counts being equal
  • Loading branch information
DJAndries committed Jun 6, 2023
1 parent f7ef771 commit 8f1138a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/p3a/scheduler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ TEST_F(P3ASchedulerTest, NonRandom) {
TEST_F(P3ASchedulerTest, Random) {
SetUpScheduler(true);

task_environment_.FastForwardBy(base::Hours(4));
task_environment_.FastForwardBy(base::Hours(8));
size_t first_upload_count = upload_count_;
upload_count_ = 0;

task_environment_.FastForwardBy(base::Hours(4));
task_environment_.FastForwardBy(base::Hours(8));
EXPECT_NE(upload_count_, first_upload_count);
}

Expand Down

0 comments on commit 8f1138a

Please sign in to comment.