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

Commit 4e25b4f

Browse files
committed
fix: only expect no multiaddrs if node is in-proc webworker
1 parent 2e2b29f commit 4e25b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swarm/local-addrs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = (common, options) => {
2929

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

32-
if (isWebWorker) {
32+
if (isWebWorker && common.opts.type === 'proc') {
3333
expect(multiaddrs).to.have.lengthOf(0)
3434
} else {
3535
expect(multiaddrs).to.not.be.empty()

0 commit comments

Comments
 (0)