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

Commit

Permalink
fix: remove relay v1 go tests (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 23, 2023
1 parent e379825 commit 38223f4
Showing 1 changed file with 1 addition and 77 deletions.
78 changes: 1 addition & 77 deletions test/circuit/v1/all.js
@@ -1,7 +1,7 @@
/* eslint max-nested-callbacks: ["error", 8] */
/* eslint-env mocha */

import { createJs, createGo, randomWsAddr } from '../../utils/circuit.js'
import { createJs, randomWsAddr } from '../../utils/circuit.js'
import { getRelayV } from '../../utils/relayd.js'

/**
Expand All @@ -13,20 +13,6 @@ export default {
// rv1 is a standalone, reference implementation of circuit relay v1
// (https://github.com/libp2p/go-libp2p-relay-daemon)

'go-rv1-go': {
/**
* @param {Factory} factory
*/
create: async (factory) => {
const relay = await getRelayV(1)
return Promise.all([
createGo([randomWsAddr], factory),
relay,
createGo([randomWsAddr], factory)
])
}
},

'js-rv1-js': {
/**
* @param {Factory} factory
Expand All @@ -41,72 +27,10 @@ export default {
}
},

'js-rv1-go': {
/**
* @param {Factory} factory
*/
create: async (factory) => {
const relay = await getRelayV(1)
return Promise.all([
createJs([randomWsAddr], factory),
relay,
createGo([randomWsAddr], factory)
])
}
},

'go-rv1-js': {
/**
* @param {Factory} factory
*/
create: async (factory) => {
const relay = await getRelayV(1)
return Promise.all([
createGo([randomWsAddr], factory),
relay,
createJs([randomWsAddr], factory)
])
}
},

// Below are legacy tests that use js-ipfs as v1 relay
// (no tests for go-ipfs as relay v1, because since 0.11 it only supports v2)
// FIXME: remove after js-ipfs migrates to v2

'go-js-go': {
/**
* @param {Factory} factory
*/
create: async (factory) => {
return Promise.all([
createGo([randomWsAddr], factory),
createJs([randomWsAddr], factory),
createGo([randomWsAddr], factory)
])
}
},
'js-js-go': {
/**
* @param {Factory} factory
*/
create: async (factory) => {
return Promise.all([
createJs([randomWsAddr], factory),
createJs([randomWsAddr], factory),
createGo([randomWsAddr], factory)
])
}
},
'go-js-js': {
/**
* @param {Factory} factory
*/
create: (factory) => Promise.all([
createGo([randomWsAddr], factory),
createJs([randomWsAddr], factory),
createJs([randomWsAddr], factory)
])
},
'js-js-js': {
/**
* @param {Factory} factory
Expand Down

0 comments on commit 38223f4

Please sign in to comment.