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

fix: remove relay v1 go tests #592

Merged
merged 1 commit into from
Feb 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 1 addition & 77 deletions test/circuit/v1/all.js
Original file line number Diff line number Diff line change
@@ -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