UDP Socket client minor formatting fixes
This commit is contained in:
parent
ac94fb3312
commit
3d5967ec8a
2 changed files with 19 additions and 17 deletions
|
@ -3,7 +3,9 @@
|
||||||
"spec_files": [
|
"spec_files": [
|
||||||
|
|
||||||
"/support/jasmineTest/testFile.js",
|
"/support/jasmineTest/testFile.js",
|
||||||
"/support/jasmineTest/Unix/unixSocketClient.spec.js"
|
"/support/jasmineTest/Unix/unixSocketClient.spec.js",
|
||||||
|
|
||||||
|
"/support/jasmineTest/UDP/udpSocketClient.spec.js"
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -8,17 +8,17 @@ ipc.config.retry = 600;
|
||||||
|
|
||||||
describe(
|
describe(
|
||||||
'UDP Socket verification.',
|
'UDP Socket verification.',
|
||||||
function(){
|
function testDescription(){
|
||||||
it(
|
it(
|
||||||
'Verify UDP server of type udp4 connects to UDP server named "udp4Server" and receives message.',
|
'Verify UDP server of type udp4 connects to UDP server named "udp4Server" and receives message.',
|
||||||
function(done){
|
function testIt(done){
|
||||||
ipc.serveNet(
|
ipc.serveNet(
|
||||||
8001,
|
8001,
|
||||||
'udp4',
|
'udp4',
|
||||||
function(){
|
function serverStarted(){
|
||||||
ipc.server.on(
|
ipc.server.on(
|
||||||
'message',
|
'message',
|
||||||
function(data,socket){
|
function gotMessage(data,socket){
|
||||||
expect(data.id).toBe('udpServer');
|
expect(data.id).toBe('udpServer');
|
||||||
expect(data.message).toBe('I am UDP4 server!');
|
expect(data.message).toBe('I am UDP4 server!');
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Reference in a new issue