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

Commit d1f98cd

Browse files
author
Alan Shaw
committed
fix: re-revert change to bitswap.spec.js wpspec.js
1 parent 8ec5f36 commit d1f98cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/core/bitswap.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const multiaddr = require('multiaddr')
1515
const isNode = require('detect-node')
1616
const multihashing = require('multihashing-async')
1717
const CID = require('cids')
18+
const path = require('path')
1819
const IPFSFactory = require('ipfsd-ctl')
1920

2021
const IPFS = require('../../src/core')
@@ -63,7 +64,7 @@ let nodes = []
6364

6465
function addNode (fDaemon, inProcNode, callback) {
6566
fDaemon.spawn({
66-
exec: './src/cli/bin.js',
67+
exec: isNode ? path.resolve(`${__dirname}/../../src/cli/bin.js`) : './src/cli/bin.js',
6768
initOptions: { bits: 512 },
6869
config: {
6970
Addresses: {

0 commit comments

Comments
 (0)