From ade214584182caa5d57355bdc109bf167391ed50 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sun, 2 Feb 2020 10:26:54 +0000 Subject: [PATCH] fix: use js for pubsub tests as before --- src/pubsub/peers.js | 4 ++-- src/pubsub/subscribe.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pubsub/peers.js b/src/pubsub/peers.js index d417b53e..88793fcf 100644 --- a/src/pubsub/peers.js +++ b/src/pubsub/peers.js @@ -25,8 +25,8 @@ module.exports = (common, options) => { before(async () => { ipfs1 = (await common.spawn()).api // webworkers are not dialable because webrtc is not available - ipfs2 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api - ipfs3 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api + ipfs2 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api + ipfs3 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api const ipfs2Addr = ipfs2.peerId.addresses .find(ma => ma.nodeAddress().address === '127.0.0.1') diff --git a/src/pubsub/subscribe.js b/src/pubsub/subscribe.js index 497ae45e..01f75a44 100644 --- a/src/pubsub/subscribe.js +++ b/src/pubsub/subscribe.js @@ -31,7 +31,7 @@ module.exports = (common, options) => { // and JS is flaky everywhere // webworkers are not dialable because webrtc is not available - ipfs2 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api + ipfs2 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api }) beforeEach(() => {