diff --git a/test/node-and-browser/plebbit.test.js b/test/node-and-browser/plebbit.test.js index 9ca36e85..6a62ef39 100644 --- a/test/node-and-browser/plebbit.test.js +++ b/test/node-and-browser/plebbit.test.js @@ -79,7 +79,7 @@ describe("Plebbit options", async () => { }); it(`Plebbit({ipfsHttpClientOptions, httpRoutersOptions}) will change config of ipfs node`, async () => { - const onlineIpfsNode = "http://localhost:5001/api/v0"; + const onlineIpfsNode = "http://localhost:15006/api/v0"; // default list of http routers to use const httpRouterUrls = ["https://routing.lol", "https://peers.pleb.bot"]; diff --git a/test/server/test-server.js b/test/server/test-server.js index d0eea487..f358a7ab 100644 --- a/test/server/test-server.js +++ b/test/server/test-server.js @@ -70,8 +70,15 @@ const anotherPubsubNodeArgs = { extraCommands: ["bootstrap rm --all"] }; +const httpRouterNodeArgs = { + dir: path.join(process.cwd(), ".test-ipfs-http-router"), + apiPort: 15006, + gatewayPort: 18085, + extraCommands: ["bootstrap rm --all", "--offline"] +}; + const startIpfsNodes = async () => { - const ipfsNodesToRun = [offlineNodeArgs, pubsubNodeArgs, anotherOfflineNodeArgs, anotherPubsubNodeArgs]; + const ipfsNodesToRun = [offlineNodeArgs, pubsubNodeArgs, anotherOfflineNodeArgs, anotherPubsubNodeArgs, httpRouterNodeArgs]; if (startOnlineSub) ipfsNodesToRun.push(onlineNodeArgs); for (const nodeArgs of ipfsNodesToRun) { console.log("Initializing Node", nodeArgs.dir, "\n");