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

Commit

Permalink
fix: only expect no multiaddrs if node is in-proc webworker
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 3, 2020
1 parent 2e2b29f commit 4e25b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm/local-addrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (common, options) => {

expect(multiaddrs).to.be.an.instanceOf(Array)

if (isWebWorker) {
if (isWebWorker && common.opts.type === 'proc') {
expect(multiaddrs).to.have.lengthOf(0)
} else {
expect(multiaddrs).to.not.be.empty()
Expand Down

0 comments on commit 4e25b4f

Please sign in to comment.