-
Notifications
You must be signed in to change notification settings - Fork 124
Conversation
@diasdavid could you check if this (only returning when we're using promises) is right? |
@diasdavid just confirmed and it works. |
src/stats.js
Outdated
return | ||
} | ||
|
||
ipfs.stats.bw().then((res) => { |
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.
@hacdias you should add a return here. Otherwise the test will pass before the call happens.
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.
OOPS! Sorry. fixed!
@diasdavid fixed 😄 |
src/stats.js
Outdated
@@ -101,7 +101,7 @@ module.exports = (common) => { | |||
return | |||
} | |||
|
|||
ipfs.stats.bw().then((res) => { | |||
return ipfs.stats.bw().then((res) => { |
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.
@hacdias have you checked if this is done in all the tests?
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.
Yes, on all promises tests
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.
thank you 👍
Ref.: ipfs/js-ipfs#1189