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

Fix 683 #688

Merged
merged 10 commits into from
Feb 12, 2018
Merged

Fix 683 #688

merged 10 commits into from
Feb 12, 2018

Conversation

daviddias
Copy link
Contributor

No description provided.

@@ -9,15 +9,16 @@ chai.use(dirtyChai)
const IPFSApi = require('../src')

const DaemonFactory = require('ipfsd-ctl')
const df = DaemonFactory.create()
const df = DaemonFactory.create({remote: true, port: 30003})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dryajov I'm confused. From docs seems that this is the way to spawn remove daemons, however, it seems it didn't use it even once for all the tests. Is there any magic trick? Truth be told, tests are failing and so I suspect this to be it.

Copy link
Contributor

Choose a reason for hiding this comment

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

By default, it detects if not running in node, it will assume we're in the browser and use the remote daemon. So, no arguments to create will do what you expect depending on env. This was a specific requirement we discussed during the revamp of ipfsd.

Copy link
Contributor

Choose a reason for hiding this comment

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

So no need for explicit remote unless you have to specify the port.

package.json Outdated
},
"scripts": {
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
"test:browser": "node --max-old-space-size=8192 ./node_modules/.bin/aegir test -t browser",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still no luck. Kind of running out of my options here :(

Copy link
Contributor Author

@daviddias daviddias Feb 10, 2018

Choose a reason for hiding this comment

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

@vmx @pgte @dignifiedquire any Webpack wisdom to solve this issue? I'm using the latest ipfs/js-ipfsd-ctl#200 and no luck still.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, spoke too soon, IT RUUUNS :D

image

@daviddias
Copy link
Contributor Author

remaining issues are being handled on #651

@daviddias daviddias merged commit debb1e0 into master Feb 12, 2018
@daviddias daviddias deleted the fix-683 branch February 12, 2018 12:29
@ghost ghost removed the in progress label Feb 12, 2018
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