Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 3a96093

Browse files
committed
fix: use go for webworker tests
1 parent bd1cfea commit 3a96093

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pubsub/peers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module.exports = (common, options) => {
2525
before(async () => {
2626
ipfs1 = (await common.spawn()).api
2727
// webworkers are not dialable because webrtc is not available
28-
ipfs2 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api
29-
ipfs3 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api
28+
ipfs2 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api
29+
ipfs3 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api
3030

3131
const ipfs2Addr = ipfs2.peerId.addresses
3232
.find(ma => ma.nodeAddress().address === '127.0.0.1')

src/pubsub/subscribe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = (common, options) => {
3131
// and JS is flaky everywhere
3232

3333
// webworkers are not dialable because webrtc is not available
34-
ipfs2 = (await common.spawn({ type: isWebWorker ? 'js' : undefined })).api
34+
ipfs2 = (await common.spawn({ type: isWebWorker ? 'go' : undefined })).api
3535
})
3636

3737
beforeEach(() => {

0 commit comments

Comments
 (0)