tcp and UDP tests working together

This commit is contained in:
Brandon Nozaki Miller 2016-01-10 02:39:14 -08:00
parent 829b0790f5
commit 8802aeeb0b
13 changed files with 318 additions and 332 deletions

View file

@ -337,17 +337,20 @@ function init(path,config,log,port){
var destroyedSocketId=false;
if(socket){
if(socket.readable)
if(socket.readable){
continue;
}
}
if(socket.id)
if(socket.id){
destroyedSocketId=socket.id;
}
server.log('socket disconnected'.notice,' '+destroyedSocketId.variable);
if(socket)
if(socket && socket.destroy){
socket.destroy();
}
server.sockets.splice(i,1);

View file

@ -1,37 +0,0 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'cover' ]
2 info using npm@2.14.7
3 info using node@v4.2.3
4 verbose run-script [ 'precover', 'cover', 'postcover' ]
5 info precover node-ipc@5.2.0
6 info cover node-ipc@5.2.0
7 verbose unsafe-perm in lifecycle true
8 info node-ipc@5.2.0 Failed to exec cover script
9 verbose stack Error: node-ipc@5.2.0 cover: `istanbul cover -x **/spec/** -dir ./spec/coverage jasmine&& cat ./spec/coverage/lcov.info | codacy-coverage`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:818:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid node-ipc@5.2.0
11 verbose cwd /home/bmiller/git/node-ipc
12 error Linux 4.2.0-22-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "cover"
14 error node v4.2.3
15 error npm v2.14.7
16 error code ELIFECYCLE
17 error node-ipc@5.2.0 cover: `istanbul cover -x **/spec/** -dir ./spec/coverage jasmine&& cat ./spec/coverage/lcov.info | codacy-coverage`
17 error Exit status 1
18 error Failed at the node-ipc@5.2.0 cover script 'istanbul cover -x **/spec/** -dir ./spec/coverage jasmine&& cat ./spec/coverage/lcov.info | codacy-coverage'.
18 error This is most likely a problem with the node-ipc package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error istanbul cover -x **/spec/** -dir ./spec/coverage jasmine&& cat ./spec/coverage/lcov.info | codacy-coverage
18 error You can get their info via:
18 error npm owner ls node-ipc
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

File diff suppressed because one or more lines are too long

View file

@ -20,14 +20,14 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">56.3% </span>
<span class="strong">56.79% </span>
<span class="quiet">Statements</span>
<span class='fraction'>228/405</span>
<span class='fraction'>230/405</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">40.59% </span>
<span class="strong">44.12% </span>
<span class="quiet">Branches</span>
<span class='fraction'>82/202</span>
<span class='fraction'>90/204</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">76.74% </span>
@ -35,9 +35,9 @@
<span class='fraction'>33/43</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">56.3% </span>
<span class="strong">56.79% </span>
<span class="quiet">Lines</span>
<span class='fraction'>228/405</span>
<span class='fraction'>230/405</span>
</div>
</div>
</div>
@ -73,15 +73,15 @@
<tr>
<td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
<td data-value="62.59" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 62%;"></div><div class="cover-empty" style="width:38%;"></div></div></td>
<td data-value="62.59" class="pct medium">62.59%</td>
<td data-value="270" class="abs medium">169/270</td>
<td data-value="41.54" class="pct low">41.54%</td>
<td data-value="130" class="abs low">54/130</td>
<td data-value="63.33" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 63%;"></div><div class="cover-empty" style="width:37%;"></div></div></td>
<td data-value="63.33" class="pct medium">63.33%</td>
<td data-value="270" class="abs medium">171/270</td>
<td data-value="46.97" class="pct low">46.97%</td>
<td data-value="132" class="abs low">62/132</td>
<td data-value="87.88" class="pct high">87.88%</td>
<td data-value="33" class="abs high">29/33</td>
<td data-value="62.59" class="pct medium">62.59%</td>
<td data-value="270" class="abs medium">169/270</td>
<td data-value="63.33" class="pct medium">63.33%</td>
<td data-value="270" class="abs medium">171/270</td>
</tr>
</tbody>
@ -90,7 +90,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="prettify.js"></script>

View file

@ -77,7 +77,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -754,7 +754,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -73,21 +73,21 @@
28</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
@ -130,7 +130,7 @@ module.exports=parser;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -20,14 +20,14 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">62.59% </span>
<span class="strong">63.33% </span>
<span class="quiet">Statements</span>
<span class='fraction'>169/270</span>
<span class='fraction'>171/270</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">41.54% </span>
<span class="strong">46.97% </span>
<span class="quiet">Branches</span>
<span class='fraction'>54/130</span>
<span class='fraction'>62/132</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">87.88% </span>
@ -35,9 +35,9 @@
<span class='fraction'>29/33</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">62.59% </span>
<span class="strong">63.33% </span>
<span class="quiet">Lines</span>
<span class='fraction'>169/270</span>
<span class='fraction'>171/270</span>
</div>
</div>
</div>
@ -86,15 +86,15 @@
<tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="55.26" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 55%;"></div><div class="cover-empty" style="width:45%;"></div></div></td>
<td data-value="55.26" class="pct medium">55.26%</td>
<td data-value="152" class="abs medium">84/152</td>
<td data-value="38.1" class="pct low">38.1%</td>
<td data-value="84" class="abs low">32/84</td>
<td data-value="56.58" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 56%;"></div><div class="cover-empty" style="width:44%;"></div></div></td>
<td data-value="56.58" class="pct medium">56.58%</td>
<td data-value="152" class="abs medium">86/152</td>
<td data-value="46.51" class="pct low">46.51%</td>
<td data-value="86" class="abs low">40/86</td>
<td data-value="80" class="pct high">80%</td>
<td data-value="20" class="abs high">16/20</td>
<td data-value="55.26" class="pct medium">55.26%</td>
<td data-value="152" class="abs medium">84/152</td>
<td data-value="56.58" class="pct medium">56.58%</td>
<td data-value="152" class="abs medium">86/152</td>
</tr>
</tbody>
@ -103,7 +103,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -20,14 +20,14 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">55.26% </span>
<span class="strong">56.58% </span>
<span class="quiet">Statements</span>
<span class='fraction'>84/152</span>
<span class='fraction'>86/152</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">38.1% </span>
<span class="strong">46.51% </span>
<span class="quiet">Branches</span>
<span class='fraction'>32/84</span>
<span class='fraction'>40/86</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">80% </span>
@ -35,9 +35,9 @@
<span class='fraction'>16/20</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">55.26% </span>
<span class="strong">56.58% </span>
<span class="quiet">Lines</span>
<span class='fraction'>84/152</span>
<span class='fraction'>86/152</span>
</div>
</div>
</div>
@ -407,7 +407,10 @@
362
363
364
365</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
365
366
367
368</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -416,31 +419,31 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
@ -482,13 +485,13 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
@ -501,9 +504,9 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -541,15 +544,15 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -562,19 +565,19 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
@ -586,16 +589,16 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
@ -605,7 +608,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
@ -614,11 +617,11 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -628,30 +631,30 @@
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -660,38 +663,38 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
@ -707,7 +710,7 @@
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -717,13 +720,13 @@
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -750,19 +753,22 @@
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -792,7 +798,7 @@ function emit(socket, type, data){
message=eventParser.format(message);
}
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(this.udp4 || <span class="branch-1 cbranch-no" title="branch not covered" >this.udp6)</span>{
<span class="missing-if-branch" title="else path not taken" >E</span>if(this.udp4 || this.udp6){
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!socket.address || !socket.port){
<span class="cstat-no" title="statement not covered" > this.log('Attempting to emit to a single UDP socket without supplying socket address or port. Redispatching event as broadcast to all connected sockets');</span>
@ -867,7 +873,7 @@ function init(path,config,log,port){
return function () {
server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:<span class="branch-1 cbranch-no" title="branch not covered" >'')</span>.variable);
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >!server.udp6)</span>{
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; !server.udp6){
<span class="cstat-no" title="statement not covered" > if(!server.config.tls){</span>
<span class="cstat-no" title="statement not covered" > server.server=net.createServer(</span>
serverCreated
@ -927,7 +933,7 @@ function init(path,config,log,port){
}
&nbsp;
server.server=dgram.createSocket(
((server.udp4)? 'udp4':<span class="branch-1 cbranch-no" title="branch not covered" >'udp6')</span>
((server.udp4)? 'udp4':'udp6')
);
server.server.write=UDPWrite;
server.server.on(
@ -981,7 +987,7 @@ function init(path,config,log,port){
socket.on(
'data',
function(data,UDPSocket){
var sock=((server.udp4 || <span class="branch-1 cbranch-no" title="branch not covered" >server.udp6)</span>? UDPSocket : <span class="branch-1 cbranch-no" title="branch not covered" >socket)</span>;
var sock=((server.udp4 || server.udp6)? UDPSocket : <span class="branch-1 cbranch-no" title="branch not covered" >socket)</span>;
<span class="missing-if-branch" title="if path not taken" >I</span>if(server.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > data=new Buffer(data,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
@ -1071,7 +1077,7 @@ function init(path,config,log,port){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >!server.udp6)</span>{
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; !server.udp6){
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable);</span>
<span class="cstat-no" title="statement not covered" > server.server.listen(</span>
server.port,
@ -1081,7 +1087,7 @@ function init(path,config,log,port){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
server.log('starting server as'.debug,((server.udp4)? 'udp4':<span class="branch-1 cbranch-no" title="branch not covered" >'udp6')</span>.variable);
server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);
server.server.bind(
server.port,
server.path
@ -1110,23 +1116,26 @@ function init(path,config,log,port){
var destroyedSocketId=false;
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(socket){
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket.readable)
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket.readable){
<span class="cstat-no" title="statement not covered" > continue;</span>
}
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket.id)
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket.id){
<span class="cstat-no" title="statement not covered" > destroyedSocketId=socket.id;</span>
}
&nbsp;
server.log('socket disconnected'.notice,' '+destroyedSocketId.variable);
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(socket)
socket.destroy();
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket &amp;&amp; socket.destroy){
<span class="cstat-no" title="statement not covered" > socket.destroy();</span>
}
&nbsp;
<span class="cstat-no" title="statement not covered" > server.sockets.splice(i,1);</span>
server.sockets.splice(i,1);
&nbsp;
<span class="cstat-no" title="statement not covered" > server.trigger('socket.disconnected', socket, destroyedSocketId);</span>
server.trigger('socket.disconnected', socket, destroyedSocketId);
&nbsp;
<span class="cstat-no" title="statement not covered" > return;</span>
return;
}
}
);
@ -1141,7 +1150,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -415,21 +415,21 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">65×</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">65×</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">65×</span>
<span class="cline-any cline-yes">205×</span>
<span class="cline-any cline-yes">186×</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-yes">221×</span>
<span class="cline-any cline-yes">200×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">19×</span>
<span class="cline-any cline-yes">21×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">65×</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -997,7 +997,7 @@ module.exports=ipc;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:26:19 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 02:38:40 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -12,7 +12,7 @@ FN:245,connectNet
FN:290,(anonymous_10)
FNF:10
FNH:4
FNDA:65,log
FNDA:71,log
FNDA:4,disconnect
FNDA:0,serve
FNDA:0,(anonymous_4)
@ -28,14 +28,14 @@ DA:22,1
DA:26,1
DA:44,1
DA:56,1
DA:57,65
DA:57,71
DA:58,0
DA:61,65
DA:63,65
DA:64,205
DA:65,186
DA:68,19
DA:71,65
DA:61,71
DA:63,71
DA:64,221
DA:65,200
DA:68,21
DA:71,71
DA:76,1
DA:77,4
DA:78,0
@ -162,9 +162,9 @@ LH:59
BRDA:29,1,0,0
BRDA:29,1,1,1
BRDA:57,2,0,0
BRDA:57,2,1,65
BRDA:64,3,0,186
BRDA:64,3,1,19
BRDA:57,2,1,71
BRDA:64,3,0,200
BRDA:64,3,1,21
BRDA:77,4,0,0
BRDA:77,4,1,4
BRDA:84,5,0,4
@ -240,28 +240,28 @@ FN:3,formatData
FN:15,parseDataEvents
FNF:2
FNH:2
FNDA:7,formatData
FNDA:7,parseDataEvents
FNDA:8,formatData
FNDA:8,parseDataEvents
DA:1,1
DA:3,1
DA:4,7
DA:4,8
DA:5,0
DA:7,7
DA:7,8
DA:8,0
DA:11,7
DA:12,7
DA:11,8
DA:12,8
DA:15,1
DA:16,7
DA:17,7
DA:18,7
DA:16,8
DA:17,8
DA:18,8
DA:21,1
DA:27,1
LF:14
LH:12
BRDA:4,1,0,0
BRDA:4,1,1,7
BRDA:4,1,1,8
BRDA:7,2,0,0
BRDA:7,2,1,7
BRDA:7,2,1,8
BRF:4
BRH:2
end_of_record
@ -466,42 +466,42 @@ FN:281,started
FN:334,(anonymous_20)
FNF:20
FNH:16
FNDA:1,emit
FNDA:2,emit
FNDA:0,broadcast
FNDA:2,init
FNDA:1,(anonymous_4)
FNDA:1,(anonymous_5)
FNDA:2,(anonymous_4)
FNDA:2,(anonymous_5)
FNDA:2,(anonymous_6)
FNDA:2,(anonymous_7)
FNDA:1,(anonymous_8)
FNDA:1,UDPWrite
FNDA:1,(anonymous_10)
FNDA:2,(anonymous_8)
FNDA:2,UDPWrite
FNDA:2,(anonymous_10)
FNDA:0,(anonymous_11)
FNDA:1,(anonymous_12)
FNDA:2,(anonymous_12)
FNDA:0,(anonymous_13)
FNDA:1,serverCreated
FNDA:2,serverCreated
FNDA:1,(anonymous_15)
FNDA:0,(anonymous_16)
FNDA:1,(anonymous_17)
FNDA:1,(anonymous_18)
FNDA:1,started
FNDA:2,(anonymous_17)
FNDA:2,(anonymous_18)
FNDA:2,started
FNDA:1,(anonymous_20)
DA:1,1
DA:9,1
DA:10,1
DA:12,1
DA:13,1
DA:14,1
DA:16,1
DA:10,2
DA:12,2
DA:13,2
DA:14,2
DA:16,2
DA:17,0
DA:19,1
DA:22,1
DA:24,1
DA:19,2
DA:22,2
DA:24,2
DA:25,0
DA:26,0
DA:27,0
DA:30,1
DA:34,1
DA:30,2
DA:34,2
DA:37,0
DA:40,1
DA:41,0
@ -518,15 +518,15 @@ DA:57,0
DA:58,0
DA:63,1
DA:64,2
DA:76,1
DA:82,1
DA:76,2
DA:82,2
DA:85,2
DA:86,0
DA:87,0
DA:90,2
DA:94,2
DA:95,1
DA:97,1
DA:95,2
DA:97,2
DA:98,0
DA:99,0
DA:103,0
@ -546,66 +546,66 @@ DA:122,0
DA:123,0
DA:128,0
DA:134,1
DA:135,1
DA:136,1
DA:143,1
DA:135,2
DA:136,2
DA:143,2
DA:144,0
DA:145,0
DA:148,0
DA:156,1
DA:159,1
DA:160,1
DA:163,1
DA:168,1
DA:156,2
DA:159,2
DA:160,2
DA:163,2
DA:168,2
DA:171,0
DA:173,0
DA:180,1
DA:180,2
DA:182,1
DA:183,1
DA:185,1
DA:183,2
DA:185,2
DA:186,0
DA:188,1
DA:189,1
DA:188,2
DA:189,2
DA:192,1
DA:199,1
DA:199,2
DA:202,0
DA:204,0
DA:208,1
DA:211,1
DA:212,1
DA:208,2
DA:211,2
DA:212,2
DA:213,0
DA:214,0
DA:219,0
DA:222,1
DA:223,1
DA:225,1
DA:227,1
DA:222,2
DA:223,2
DA:225,2
DA:227,2
DA:228,0
DA:229,0
DA:232,1
DA:234,1
DA:236,1
DA:237,1
DA:238,1
DA:240,1
DA:242,1
DA:243,1
DA:245,1
DA:254,1
DA:257,1
DA:232,2
DA:234,2
DA:236,2
DA:237,2
DA:238,2
DA:240,2
DA:242,2
DA:243,2
DA:245,2
DA:254,2
DA:257,2
DA:258,0
DA:259,1
DA:260,1
DA:262,1
DA:259,2
DA:260,2
DA:262,2
DA:263,0
DA:265,1
DA:267,1
DA:271,1
DA:276,1
DA:265,2
DA:267,2
DA:271,2
DA:276,2
DA:277,0
DA:281,1
DA:282,1
DA:285,1
DA:282,2
DA:285,2
DA:286,0
DA:287,0
DA:288,0
@ -613,13 +613,13 @@ DA:289,0
DA:290,0
DA:293,0
DA:298,0
DA:301,1
DA:301,2
DA:302,0
DA:303,0
DA:308,0
DA:311,1
DA:312,1
DA:317,1
DA:311,2
DA:312,2
DA:317,2
DA:330,2
DA:332,2
DA:335,1
@ -628,28 +628,28 @@ DA:337,1
DA:339,1
DA:340,1
DA:341,0
DA:344,1
DA:345,0
DA:347,1
DA:345,1
DA:346,0
DA:349,1
DA:350,1
DA:351,1
DA:352,0
DA:354,0
DA:356,0
DA:361,2
DA:364,1
DA:355,1
DA:357,1
DA:359,1
DA:364,2
DA:367,1
LF:152
LH:84
LH:86
BRDA:16,1,0,0
BRDA:16,1,1,1
BRDA:22,2,0,1
BRDA:16,1,1,2
BRDA:22,2,0,2
BRDA:22,2,1,0
BRDA:22,3,0,1
BRDA:22,3,1,0
BRDA:22,3,0,2
BRDA:22,3,1,1
BRDA:24,4,0,0
BRDA:24,4,1,1
BRDA:24,5,0,1
BRDA:24,5,1,1
BRDA:24,4,1,2
BRDA:24,5,0,2
BRDA:24,5,1,2
BRDA:41,6,0,0
BRDA:41,6,1,0
BRDA:46,7,0,0
@ -660,12 +660,12 @@ BRDA:52,9,0,0
BRDA:52,9,1,0
BRDA:85,10,0,0
BRDA:85,10,1,2
BRDA:95,11,0,1
BRDA:95,11,0,2
BRDA:95,11,1,0
BRDA:97,12,0,0
BRDA:97,12,1,1
BRDA:97,13,0,1
BRDA:97,13,1,0
BRDA:97,12,1,2
BRDA:97,13,0,2
BRDA:97,13,1,1
BRDA:98,14,0,0
BRDA:98,14,1,0
BRDA:104,15,0,0
@ -679,51 +679,53 @@ BRDA:117,18,1,0
BRDA:118,19,0,0
BRDA:118,19,1,0
BRDA:143,20,0,0
BRDA:143,20,1,1
BRDA:143,20,1,2
BRDA:157,21,0,1
BRDA:157,21,1,0
BRDA:157,21,1,1
BRDA:185,22,0,0
BRDA:185,22,1,1
BRDA:211,23,0,1
BRDA:185,22,1,2
BRDA:211,23,0,2
BRDA:211,23,1,0
BRDA:211,24,0,1
BRDA:211,24,1,0
BRDA:211,24,0,2
BRDA:211,24,1,1
BRDA:212,25,0,0
BRDA:212,25,1,1
BRDA:222,26,0,1
BRDA:212,25,1,2
BRDA:222,26,0,2
BRDA:222,26,1,0
BRDA:227,27,0,0
BRDA:227,27,1,1
BRDA:227,28,0,1
BRDA:227,28,1,1
BRDA:242,29,0,1
BRDA:227,27,1,2
BRDA:227,28,0,2
BRDA:227,28,1,2
BRDA:242,29,0,2
BRDA:242,29,1,0
BRDA:257,30,0,0
BRDA:257,30,1,1
BRDA:257,30,1,2
BRDA:262,31,0,0
BRDA:262,31,1,1
BRDA:262,31,1,2
BRDA:276,32,0,0
BRDA:276,32,1,1
BRDA:276,32,1,2
BRDA:285,33,0,0
BRDA:285,33,1,1
BRDA:285,33,1,2
BRDA:287,34,0,0
BRDA:287,34,1,0
BRDA:301,35,0,0
BRDA:301,35,1,1
BRDA:301,36,0,1
BRDA:301,36,1,0
BRDA:301,35,1,2
BRDA:301,36,0,2
BRDA:301,36,1,1
BRDA:302,37,0,0
BRDA:302,37,1,0
BRDA:311,38,0,1
BRDA:311,38,1,0
BRDA:311,38,1,1
BRDA:339,39,0,1
BRDA:339,39,1,0
BRDA:340,40,0,0
BRDA:340,40,1,1
BRDA:344,41,0,0
BRDA:344,41,1,1
BRDA:349,42,0,1
BRDA:349,42,1,0
BRF:84
BRH:32
BRDA:345,41,0,0
BRDA:345,41,1,1
BRDA:351,42,0,0
BRDA:351,42,1,1
BRDA:351,43,0,1
BRDA:351,43,1,1
BRF:86
BRH:40
end_of_record

View file

@ -2,18 +2,20 @@
const ipc = require('../../../../node-ipc');
ipc.config.id ='testClient';
ipc.config.retry = 600;
describe(
'UDP Socket verification.',
function testDescription(){
it(
'Verify UDP server of type udp4 connects to UDP server named "udp4Server" and receives message.',
function testIt(done){
ipc.config.networkPort=8095;
ipc.config.id ='testClient';
ipc.config.retry = 600;
let clientPort=8001;
ipc.serveNet(
8001,
clientPort,
'udp4',
function serverStarted(){
ipc.server.on(
@ -25,6 +27,14 @@ describe(
}
);
ipc.server.on(
'error',
function(err){
expect(err).toBe(false);
testDone();
}
);
ipc.server.emit(
{
address : 'localhost',
@ -36,14 +46,6 @@ describe(
message : 'I am testClient'
}
);
ipc.server.on(
'error',
function(err){
expect(err).toBe(false);
testDone();
}
);
}
);
@ -60,10 +62,14 @@ describe(
'Verify UDP server of type udp6 connects to UDP server named "udp6Server" and receives message.',
function(done){
ipc.config.networkPort=8099;
ipc.config.id ='testClient';
ipc.config.retry = 600;
let clientPort=8010;
ipc.serveNet(
'::1',
8010,
clientPort,
'udp6',
function(){
ipc.server.on(
@ -75,6 +81,14 @@ describe(
}
);
ipc.server.on(
'error',
function(err){
expect(err).toBe(false);
testDone();
}
);
ipc.server.emit(
{
address : '::1',
@ -86,19 +100,12 @@ describe(
message : 'I am testClient'
}
);
ipc.server.on(
'error',
function(err){
expect(err).toBe(false);
testDone();
}
);
}
);
function testDone(){
ipc.server.stop();
done();
}
ipc.server.start();

View file

@ -15,6 +15,8 @@ setTimeout(
ipc.config.id = 'udpServer';
ipc.config.retry= 1500;
ipc.config.silent=true;
ipc.config.networkPort=8095;
ipc.serveNet(
'udp4',