Skip to content

Commit

Permalink
Merge pull request #18779 from brave/p3a-scheduler-random-test-fix
Browse files Browse the repository at this point in the history
Attempted fix for P3ASchedulerTest.Random test failure: increase time period to reduce risk of upload counts being equal
  • Loading branch information
DJAndries authored Jun 13, 2023
2 parents c483ffa + 8f1138a commit 912eda9
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 912eda9

Please sign in to comment.