| Index: components/offline_pages/background/request_coordinator_unittest.cc
|
| diff --git a/components/offline_pages/background/request_coordinator_unittest.cc b/components/offline_pages/background/request_coordinator_unittest.cc
|
| index 46c6debbbe5fede2c1faa5223d17062e569ec837..531c4d17280cadb76b2ea5b55a150e45c0549d1f 100644
|
| --- a/components/offline_pages/background/request_coordinator_unittest.cc
|
| +++ b/components/offline_pages/background/request_coordinator_unittest.cc
|
| @@ -1078,6 +1078,9 @@ TEST_F(RequestCoordinatorTest, WatchdogTimeoutForScheduledProcessing) {
|
| // Build a request to use with the pre-renderer, and put it on the queue.
|
| offline_pages::SavePageRequest request(
|
| kRequestId1, kUrl1, kClientId1, base::Time::Now(), kUserRequested);
|
| + // Set request to allow one more completed attempt.
|
| + int max_tries = coordinator()->policy()->GetMaxCompletedTries();
|
| + request.set_completed_attempt_count(max_tries - 1);
|
| coordinator()->queue()->AddRequest(
|
| request,
|
| base::Bind(&RequestCoordinatorTest::AddRequestDone,
|
| @@ -1114,6 +1117,7 @@ TEST_F(RequestCoordinatorTest, WatchdogTimeoutForScheduledProcessing) {
|
| PumpLoop();
|
|
|
| EXPECT_FALSE(is_starting());
|
| + EXPECT_FALSE(coordinator()->is_busy());
|
| EXPECT_TRUE(OfflinerWasCanceled());
|
| }
|
|
|
|
|