-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cannot run test:interop
#2700
Comments
Interop tests are running ok in CI - is this still a problem for you? |
I ferched the latest version of
|
This should now be working. At least it's working for me now that master is (temporarily) depending on ipfs/interop#96. Please shout if not true and we'll reopen! |
Hi @alanshaw , now I get same issue I reported at the beginning of the issue ➜ js-ipfs git:(master) npm run test:interop
> ipfs@0.40.0 test:interop /home/ggarrido/projects/js-ipfs
> IPFS_JS_EXEC=$PWD/src/cli/bin.js ipfs-interop
> ipfs-interop@0.1.1 test /home/ggarrido/projects/js-ipfs/node_modules/ipfs-interop
> cross-env IPFS_REUSEPORT=false aegir test
superagent: Enable experimental feature http2
Test Node.js
Warning: Cannot find any files matching pattern "test/**/*.spec.js"
superagent: Enable experimental feature http2
/home/ggarrido/projects/js-ipfs/node_modules/mocha/node_modules/yargs/yargs.js:1163
else throw err
^
Error: Cannot find module 'multicodec/src/name-table'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18) |
As far as I can see you need first to upgrade the version of dep https://github.com/ipfs/js-ipfs-bitswap/blob/v0.27.0/src/types/message/index.js Thee issue still persist after the upgrade due to the package I tried removing the local $> rm -rf ~/projects/js-ipfs/node_modules/ipfs/node_modules/ipfs-bitswap Therefore IMO the way to proceed to fix this issue would be:
|
@ggarri please pull master, remove your node_modules and package-lock.json and reinstall. |
js-ipfs version: 0.40.0-
Repo version: 7
System version: x64/linux
Node.js version: v11.15.0
Type: Bug
Severity: Low
Description:
Ipfs interop test cannot be executed due to a dependency mismatch
multicodec
. After a quick research I realized the packageipfs-bitswap:~0.26.2
is using an outdated version ofmulticodec:~0.5.7
which removed the filemulticodec/src/name-table
. There is an open PR to sort this issue.Steps to reproduce the error:
master
branchtest:interop
as follow:How to sort it out
IMHO there are two alternatives:
js-ipfs-bitswap
the latest PR to come through (8 days old today)multicodec
to version 0.5.6 before required file was removedThe text was updated successfully, but these errors were encountered: