File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const createServer = require('./src').createServer
4
4
5
5
const server = createServer ( ) // using defaults
6
6
module . exports = {
7
- bundlesize : { maxSize : '920kB ' } ,
7
+ bundlesize : { maxSize : '928kB ' } ,
8
8
karma : {
9
9
files : [ {
10
10
pattern : 'test/fixtures/**/*' ,
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ module.exports = ({ type }) => {
8
8
// from the browser tell remote nodes to listen over WS
9
9
if ( type !== 'proc' && ( isBrowser || isWebWorker ) ) {
10
10
swarm = [ '/ip4/127.0.0.1/tcp/0/ws' ]
11
+ // from the browser, in process nodes cannot listen on _any_ addrs
12
+ } else if ( type === 'proc' && ( isBrowser || isWebWorker ) ) {
13
+ swarm = [ ]
11
14
} else {
12
15
swarm = [ '/ip4/127.0.0.1/tcp/0' ]
13
16
}
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ describe('`createController({test: true})` should return daemon with correct con
80
80
81
81
if ( ( isBrowser || isWebWorker ) && opts . type !== 'proc' ) {
82
82
expect ( swarm ) . to . be . deep . eq ( [ '/ip4/127.0.0.1/tcp/0/ws' ] )
83
+ } else if ( ( isBrowser || isWebWorker ) && opts . type === 'proc' ) {
84
+ expect ( swarm ) . to . be . deep . eq ( [ ] )
83
85
} else {
84
86
expect ( swarm ) . to . be . deep . eq ( [ '/ip4/127.0.0.1/tcp/0' ] )
85
87
}
You can’t perform that action at this time.
0 commit comments