-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes estimated pending rewards does not reset to expected value when you have uncashed in tokens - follow up to #16678 #9309
Conversation
4f07a8d
to
b99af6e
Compare
@@ -0,0 +1,182 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mocked confirmations state to replicate the issue from @LaurenWags state
// Arrange | ||
const URLEndpoints endpoints = { | ||
{"/v1/confirmation/payment/c387c2d8-a26d-4451-83e4-5c0c6fd942be", | ||
{{net::HTTP_OK, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mocked endpoint response to replicate the issue from @LaurenWags
vendor/bat-native-ads/src/bat/ads/internal/account/confirmations/confirmations_state.cc
Outdated
Show resolved
Hide resolved
… you have uncashed in tokens - follow up to #16678
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves brave/brave-browser#16744
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
GetPayments
GET /v1/confirmation/payment/{payment_id}
endpoint to returnad_rewards
node in theconfirmations.json
file with:EXPECTED RESULT:
Current earnings this month (estimated): 0.08
(1.27.x or 1.28.x) orEstimated pending rewards: 4.3135
(1.26.x)We should no longer see the following in the logs: