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

Commit

Permalink
chore: disable broken circuit in js
Browse files Browse the repository at this point in the history
this disables tests which fail due to JS being unable to use circuit v2
  • Loading branch information
lidel committed Nov 18, 2021
1 parent daadecc commit 27beb3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions test/circuit/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
])
}
},
/* FIXME js needs circuit v2
'js-go-go': {
create: async (factory) => {
const goRelayV2 = await createGoRelay([`${base}/ws`], factory)
Expand All @@ -27,20 +28,25 @@ export default {
])
}
},
*/
/* FIXME js needs circuit v2
'go-go-js': {
create: (factory) => Promise.all([
createGo([`${base}/ws`], factory),
createGo([`${base}/ws`], factory),
createJs([`${base}/ws`], factory)
])
},
*/
/* FIXME js needs circuit v2
'js-go-js': {
create: (factory) => Promise.all([
createJs([`${base}/ws`], factory),
createGo([`${base}/ws`], factory),
createJs([`${base}/ws`], factory)
])
},
*/
'go-js-go': {
create: async (factory) => {
const goRelayV2 = await createGoRelay([`${base}/ws`], factory)
Expand Down
5 changes: 5 additions & 0 deletions test/circuit/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {

const base = '/ip4/127.0.0.1/tcp/0'

// note: the order nodeA-nodeB-relay means "node A connect to B over relay"
export default {
'browser-go-js': {
create: (factory) => Promise.all([
Expand All @@ -40,6 +41,7 @@ export default {
]),
connect: connWithTimeout(1500)
},
/* FIXME js needs circuit v2
'browser-js-go': {
create: (factory) => Promise.all([
createProc([], factory),
Expand All @@ -48,6 +50,7 @@ export default {
]),
connect: connWithTimeout(1500)
},
*/
'js-go-browser': {
create: (factory) => Promise.all([
createJs([`${base}/ws`], factory),
Expand Down Expand Up @@ -112,6 +115,7 @@ export default {
},
skip: () => isWebWorker // no webrtc support in webworkers
},
/* FIXME js needs circuit v2
'browser-browser-go': {
create: (factory) => Promise.all([
createProc(['/ip4/127.0.0.1/tcp/24642/wss/p2p-webrtc-star'], factory),
Expand All @@ -128,6 +132,7 @@ export default {
},
skip: () => isWebWorker // no webrtc support in webworkers
},
*/
'browser-browser-js': {
create: (factory) => Promise.all([
createProc(['/ip4/127.0.0.1/tcp/24642/wss/p2p-webrtc-star'], factory),
Expand Down
6 changes: 4 additions & 2 deletions test/utils/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createProc (addrs, factory) {
Addresses: {
Swarm: addrs
},
relay: {
relay: { // FIXME: this is circuit v1, needs support of v2
enabled: true,
hop: {
enabled: true
Expand Down Expand Up @@ -43,7 +43,7 @@ export function createJs (addrs, factory) {
Addresses: {
Swarm: addrs
},
relay: {
relay: { // FIXME: this is circuit v1, needs support of v2
enabled: true,
hop: {
enabled: true
Expand All @@ -68,6 +68,7 @@ export function createGo (addrs, factory, relay) {
Swarm: addrs
},
Swarm: {
// go uses circuit v2
RelayClient: {
Enabled: true,
StaticRelays
Expand All @@ -94,6 +95,7 @@ export function createGoRelay (addrs, factory) {
Swarm: addrs
},
Swarm: {
// go uses circuit v2
RelayClient: {
Enabled: false
},
Expand Down

0 comments on commit 27beb3b

Please sign in to comment.