Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fixes undefined scenarios #11804

Merged
merged 1 commit into from
Nov 7, 2017
Merged

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Nov 6, 2017

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Resolves #11703
Resolves #11684

Auditors:

Test Plan:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@codecov-io
Copy link

codecov-io commented Nov 6, 2017

Codecov Report

Merging #11804 into master will decrease coverage by <.01%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master   #11804      +/-   ##
==========================================
- Coverage   52.61%   52.61%   -0.01%     
==========================================
  Files         271      271              
  Lines       25715    25714       -1     
  Branches     4104     4105       +1     
==========================================
- Hits        13530    13529       -1     
  Misses      12185    12185
Flag Coverage Δ
#unittest 52.61% <83.33%> (-0.01%) ⬇️
Impacted Files Coverage Δ
app/browser/api/ledger.js 38.07% <83.33%> (-0.04%) ⬇️

@@ -2445,6 +2444,11 @@ const transitionWalletToBat = () => {
return
}

if (!client) {
console.log('client error')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentional? could be a console.error if so

Copy link
Contributor Author

@NejcZdovc NejcZdovc Nov 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's intentional. Because this is not really an error, it's just log that there was a race condition and it will be re-triggered after another call

Resolves brave#11703
Resolves brave#11684

Auditors:

Test Plan:
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@bsclifton bsclifton merged commit 3bb444e into brave:master Nov 7, 2017
bsclifton added a commit that referenced this pull request Nov 7, 2017
bsclifton added a commit that referenced this pull request Nov 7, 2017
bsclifton added a commit that referenced this pull request Nov 7, 2017
@bsclifton
Copy link
Member

master 3bb444e
0.21.x 44ba335
0.20.x be52ec3
0.19.x 5e5bbb2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants