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

Commit

Permalink
fix: remove remaining Circuit v1 Go tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed May 3, 2023
1 parent 612ebca commit 20652f0
Showing 1 changed file with 0 additions and 70 deletions.
70 changes: 0 additions & 70 deletions test/circuit/v1/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ export default {
]),
connect: connWithTimeout(1500)
},
'browser-js-go': {
/**
* @param {Factory} factory
*/
create: (factory) => Promise.all([
createProc([], factory),
createJs([randomWsAddr], factory),
createGo([randomWsAddr], factory)
]),
connect: connWithTimeout(1500)
},
'js-go-browser': {
skip: () => true, // FIXME when we have circuit v2 in js-ipfs and webrtc signaling
/**
Expand Down Expand Up @@ -114,41 +103,6 @@ export default {
]),
connect: connWithTimeout(1500)
},
'go-js-browser': {
/**
* @param {Factory} factory
*/
create: (factory) => Promise.all([
createGo([randomWsAddr], factory),
createJs([randomWsAddr], factory),
createProc([], factory)
]),
connect: connWithTimeout(1500)
},
'go-browser-browser': {
/**
* @param {Factory} factory
*/
create: (factory) => Promise.all([
createGo([randomWsAddr], factory),
createProc(['/ip4/127.0.0.1/tcp/24642/ws/p2p-webrtc-star'], factory),
createProc(['/ip4/127.0.0.1/tcp/24642/ws/p2p-webrtc-star'], factory)
]),
/**
* @param {Controller} nodeA
* @param {Controller} nodeB
* @param {Controller} relay
*/
connect: async (nodeA, nodeB, relay) => {
await relay.api.swarm.connect(await getWsAddr(nodeA.api))
await relay.api.swarm.connect(await getWrtcStarAddr(nodeB.api))
// TODO: needed until https://github.com/ipfs/interop/issues/17 is resolved
await delay(5000)
const nodeBCircuitAddr = multiaddr(`${await getWrtcStarAddr(relay.api)}/p2p-circuit/p2p/${nodeB.peer.id.toString()}`)
await nodeA.api.swarm.connect(nodeBCircuitAddr)
},
skip: () => true // go-ipfs does not know what p2p-webrtc-star is
},
'js-browser-browser': {
/**
* @param {Factory} factory
Expand All @@ -173,30 +127,6 @@ export default {
},
skip: () => isWebWorker // no webrtc support in webworkers
},
'browser-browser-go': {
/**
* @param {Factory} factory
*/
create: (factory) => Promise.all([
createProc(['/ip4/127.0.0.1/tcp/24642/wss/p2p-webrtc-star'], factory),
createProc(['/ip4/127.0.0.1/tcp/24642/wss/p2p-webrtc-star'], factory),
createGo([randomWsAddr], factory)
]),
/**
* @param {Controller} nodeA
* @param {Controller} nodeB
* @param {Controller} relay
*/
connect: async (nodeA, nodeB, relay) => {
await relay.api.swarm.connect(await getWrtcStarAddr(nodeA.api))
await relay.api.swarm.connect(await getWsAddr(nodeB.api))
// TODO: needed until https://github.com/ipfs/interop/issues/17 is resolved
await delay(5000)
const nodeBCircuitAddr = multiaddr(`${await getWrtcStarAddr(relay.api)}/p2p-circuit/p2p/${(await nodeB.api.id()).id.toString()}`)
await nodeA.api.swarm.connect(nodeBCircuitAddr)
},
skip: () => isWebWorker // no webrtc support in webworkers
},
'browser-browser-js': {
/**
* @param {Factory} factory
Expand Down

0 comments on commit 20652f0

Please sign in to comment.