Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Conversation

dignifiedquire
Copy link
Contributor

This fixes the test failures in ipfs/js-ipfs#392

@diasdavid please review

package.json Outdated
},
"devDependencies": {
"aegir": "^3.2.0"
"aegir": "^4.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

wanna bump it to 5?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:D sure

@daviddias
Copy link
Contributor

Could you give more info of what was the failure?

@daviddias
Copy link
Contributor

Have you tested it against js-ipfs-api?

@dignifiedquire
Copy link
Contributor Author

dignifiedquire commented Aug 3, 2016

This is the failure: (build: https://circleci.com/gh/ipfs/js-ipfs/665)

  1. core --both .files promise API .add buffer:
    Error: Resolution method is overspecified. Specify a callback or return a Promise; not both.
    at webpack:///~/interface-ipfs-core/lib/files.js:226:0 <- test/browser.js:162249:13

  2. core --both .files promise API .add buffer:
    Resolution method is overspecified. Specify a callback or return a Promise; not both.

@daviddias
Copy link
Contributor

I'm surprised that this error just happened now. Can you tell what got broken meanwhile?

Otherwise LGTM

@dignifiedquire
Copy link
Contributor Author

The error is part of mocha@3 which checks for this explicitly, before it just go silently swallowed. The confusing part is that I actually didn't yet upgrade that branch to mocha 3, but it needs fixing in any case.

@dignifiedquire
Copy link
Contributor Author

Have you tested it against js-ipfs-api?

just tested and things pass

@daviddias
Copy link
Contributor

mocha@3

Thank you for clarifying :)

@daviddias daviddias merged commit c139bd5 into master Aug 3, 2016
@daviddias daviddias deleted the fix-promise branch August 3, 2016 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants