Skip to content

Commit

Permalink
test(e2e): work with refactored apis
Browse files Browse the repository at this point in the history
Some external e2e tests failed because `ipfs.id` result has changed,
the addresses property is now a `Multiaddr[]`.

This fix is backward-compatible.
  • Loading branch information
lidel committed Feb 12, 2020
1 parent 16e122a commit e139736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/peers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Peers screen', () => {
// spawn an ephemeral local node for manual swarm connect test
ipfsd = await createController({ type: 'proc', test: true, disposable: true })
const { addresses } = await ipfsd.api.id()
peeraddr = addresses.find((addr) => addr.startsWith('/ip4/127.0.0.1'))
peeraddr = addresses.find((ma) => ma.toString().startsWith('/ip4/127.0.0.1')).toString()
// connect to peer to have something in the peer table
await ipfs.swarm.connect(peeraddr)
await page.goto(webuiUrl + '#/peers')
Expand Down

0 comments on commit e139736

Please sign in to comment.