Comparing version 1.1.9 to 1.1.10
@@ -69,3 +69,3 @@ var os = require('os'), | ||
ipc.of[id].stopRetrying=true; | ||
ipc.of[id].config.stopRetrying=true; | ||
@@ -72,0 +72,0 @@ ipc.of[id].off('*'); |
{ | ||
"name": "node-ipc", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", | ||
@@ -5,0 +5,0 @@ "main": "node-ipc.js", |
#node-ipc test harness | ||
***TestHarness was intended to be run on linux.*** | ||
*the test.js file is intended to start and run all of the files in the test folder* | ||
@@ -3,0 +4,0 @@ |
@@ -26,3 +26,3 @@ var ipc = require('../../../node-ipc'); | ||
'fail', | ||
'test-harness-fail-test' | ||
'test-harness-this-test-should-fail' | ||
); | ||
@@ -29,0 +29,0 @@ setTimeout( |
@@ -1,3 +0,2 @@ | ||
var ipc = require('../../../node-ipc'), | ||
expectedClient=ipc.config.id+'-client'; | ||
var ipc = require('../../../node-ipc'); | ||
@@ -8,2 +7,4 @@ ipc.config.id = __dirname.split('/'); | ||
var expectedClient=ipc.config.id+'-client'; | ||
ipc.connectTo( | ||
@@ -19,3 +20,3 @@ 'testHarness', | ||
id : ipc.config.id, | ||
duration: 1200 | ||
duration: 1400 | ||
} | ||
@@ -48,3 +49,3 @@ ); | ||
var test='unix-server-detected-correct-id-disconnection'; | ||
if(id==ipc.config.id+'-client'){ | ||
if(id==expectedClient){ | ||
ipc.of.testHarness.emit( | ||
@@ -57,3 +58,3 @@ 'pass', | ||
'fail', | ||
test+' : detected wrong id of '+id | ||
test+' : detected wrong id of '+id+' expecting :: '+expectedClient | ||
); | ||
@@ -65,3 +66,8 @@ } | ||
process.exit(0); | ||
setTimeout( | ||
function(){ | ||
process.exit(0); | ||
}, | ||
400 | ||
) | ||
} | ||
@@ -78,7 +84,14 @@ ) | ||
var test='unix-client-registered with proper id' | ||
if(socket.id==expectedClient){ | ||
ipc.of.testHarness.emit( | ||
'pass', | ||
'unix-client-registered with proper id' | ||
test | ||
); | ||
}else{ | ||
ipc.of.testHarness.emit( | ||
'fail', | ||
test+' : detected wrong id of '+socket.id+' expecting :: '+expectedClient | ||
); | ||
} | ||
@@ -85,0 +98,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84464
33
1905