interface-js-ipfs-core icon indicating copy to clipboard operation
interface-js-ipfs-core copied to clipboard

[WIP] feat: adds tests for name.publish and name.resolve

Open alanshaw opened this issue 6 years ago • 3 comments

  • Adds test which:
    1. creates two nodes
    2. connects them (swarm.connect)
    3. calls name.publish on node0
    4. calls name.resolve(/ipns/${node0.peerid}) on the other

I could do with some advice possibly from the go-ipfs team(?), as step 4 fails with Error: Could not resolve name.. Why might that be?

Also:

  • Pulls repeated spawnWithId function into a module
  • Updates doc to reflect return value from go-ipfs

alanshaw avatar Mar 29 '18 09:03 alanshaw

Should try to use the new experimental feature for pubsub resolve (but still test the old one as well), but with the flag --enable-namesys-pubsub together with --enable-pubsub-experiment will make publish/resolve a lot faster.

victorb avatar Mar 29 '18 12:03 victorb

What's missing here?

daviddias avatar Apr 25 '18 11:04 daviddias

Just the fact that the tests don't pass and I couldn't figure out why...

alanshaw avatar Apr 25 '18 11:04 alanshaw