Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Fix failing gateway tests with this one simple trick! #1006

Merged
merged 3 commits into from
Sep 8, 2017

Conversation

ya7ya
Copy link
Contributor

@ya7ya ya7ya commented Sep 8, 2017

Fix for the failing tests in #968

Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

The reason why they fail is that you are not adding files.

Try doing this

> mv ~/.jsipfs ~/.jsipfs.bak

And run tests again, you will see that they fail.

'/ipfs-' + Math.random().toString().substring(2, 8) + '-' + Date.now()
)

http.api = new API(repoPath, {
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect, explanation why here -> #968 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diasdavid okay, Got it, I'll make sure tests are self-contained and don't use the local repo. Sorry for misunderstanding.

Copy link
Member

Choose a reason for hiding this comment

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

No worries at all :) Thank you for working on the fix.

@daviddias daviddias merged commit 7cae803 into ipfs:feat/gateway Sep 8, 2017
daviddias added a commit that referenced this pull request Sep 8, 2017
* feat: add HTTP Gateway to the js-ipfs daemon

License: MIT
Signed-off-by: Yahya <[email protected]>

* apply remaining CR

* chore: update deps

* test: fix failing gateway tests with this one simple trick! (#1006)

* fix failing tests with this one simple trick!

* adding files to make tests self-contained

* changes requested by VictorBjelkholm #968

* chore: fix circle CI chrome build (#1008) (#1009)

Thanks to mkg20001
dryajov pushed a commit that referenced this pull request Sep 12, 2017
* feat: add HTTP Gateway to the js-ipfs daemon

License: MIT
Signed-off-by: Yahya <[email protected]>

* apply remaining CR

* chore: update deps

* test: fix failing gateway tests with this one simple trick! (#1006)

* fix failing tests with this one simple trick!

* adding files to make tests self-contained

* changes requested by VictorBjelkholm #968

* chore: fix circle CI chrome build (#1008) (#1009)

Thanks to mkg20001
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