-
Notifications
You must be signed in to change notification settings - Fork 296
Conversation
3a6ef2d
to
ba6138f
Compare
|
||
callback(null, node) | ||
}) | ||
], (err) => callback(err, node)) |
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.
@dignifiedquire could you take a look at this function, I'm getting errors setting the config as the config is always empty, not sure what I messed up right now.
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.
the setting looks right to me, why do you need the getConfig?
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.
I added getConfig
to test it, it yield nothing, meaning that the daemon is being created with no config at all
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.
Sounds like init is not being run in ipfsd-ctl for some reason. Did you change something around that usage?
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.
Solved, there were too issues, ipfsd out of that and now ipfs for some reason doesn't accept setting Boolean values with the --json flag (??)
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.
The good news is, that we actually never needed 'API.HTTPHeaders.Access-Control-Allow-Credentials': true,
a6e586d
to
9a1e8e8
Compare
@dignifiedquire @victorbjelkholm could you pull this branch and try to run it and tell me what you see, I'm confused why the heck this is not working, just tested ipfsd-ctl directly and works fine, not sure why here it is going havoc This is what I see:
|
6dfbae0
to
3137a13
Compare
…re they should be
3137a13
to
9010c29
Compare
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.
Only issue I have is that the file moving completely destroys the git history it seems :(
Other than that, thank you! I was having a real hard time navigating the tests.
Exactly, it was super painful to expand the test suite and also isolate groups of tests, this will give us much more sanity! :) thank you for the review! |
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.
In general, looks good
it('.wantlist', () => { | ||
return ipfs.bitswap.wantlist() | ||
.then((res) => { | ||
expect(res).to.have.to.be.eql({ |
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.
could probably be to.be.eql
rather than that
}) | ||
|
||
it('.name.resolve', (done) => { | ||
ipfs.name.resolve(name.Name, (err, 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.
In general, it's no good if the test-cases themselves are not isolated and can't be run by themselves, in this case, name
is being set in the publish
test.
const series = require('async/series') | ||
const FactoryClient = require('./ipfs-factory/client') | ||
|
||
describe.skip('.ping', () => { |
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.
We want to skip this still?
Reading through this though, makes it clear to me that many of the tests are missing any assertions outside of "does not return an error" which is good for quick, sweeping tests that everything is at least not exploding. But it's not really good in terms of making sure that things actually work. Something we should keep in mind moving forward. |
Uh oh!
There was an error while loading. Please reload this page.