Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
fix: pass args for multiple http-client versions
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Dec 24, 2019
1 parent 21f6df7 commit b53635d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ describe('circuit', () => {
nodeB = _nodes[2]
})

after(() => Promise.all(nodes.map((node) => node.stop())))
after(async () => {
if (nodes) {
await Promise.all(nodes.map((node) => node.stop()))
}
})

it('connect', () => {
return tests[test].connect(nodeA, nodeB, relay)
Expand Down
7 changes: 6 additions & 1 deletion test/ipns.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ const publishAndResolve = async (publisherDaemon, resolverDaemon) => {
const result = await publisherDaemon.api.id()
const nodeId = result.id

await publisherDaemon.api.name.publish(ipfsRef, { resolve: false, allowOffline: true })
await publisherDaemon.api.name.publish(ipfsRef, {
resolve: false,
// TODO: fix this
'allow-offline': true, // ipfs-http-client v39
allowOffline: true // ipfs-http-client v40
})

!sameDaemon && await stopPublisherAndStartResolverDaemon()

Expand Down

0 comments on commit b53635d

Please sign in to comment.