From bb86abbe1d497a42da7e9730bc7d8fffe81b8f8e Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 23 Feb 2023 10:59:29 +0100 Subject: [PATCH] fix: remove relay v1 from go --- test/circuit/v1/all.js | 78 +----------------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/test/circuit/v1/all.js b/test/circuit/v1/all.js index 4cb567a2..8c368dce 100644 --- a/test/circuit/v1/all.js +++ b/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' /** @@ -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 @@ -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