Skip to content

Commit

Permalink
Merge pull request #5502 from brave/fix-rewards-test
Browse files Browse the repository at this point in the history
Fix browser test
  • Loading branch information
NejcZdovc authored May 10, 2020
2 parents 1229c9f + 2ca71e6 commit f02cdc8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ class BraveRewardsBrowserTest
"{\"donationAmounts\": [5,10,20]}]"
"]";
}

// we only have one page in this mock, so next page should return end
if (url.find("page=2") != std::string::npos) {
*response_status_code = net::HTTP_NO_CONTENT;
}
} else if (base::StartsWith(
url,
braveledger_uphold::GetAPIUrl("/oauth2/token"),
Expand Down

0 comments on commit f02cdc8

Please sign in to comment.