harcon-radiation
Advanced tools
Comparing version 8.8.1 to 8.8.3
{ | ||
"name": "harcon-radiation", | ||
"version": "8.8.1", | ||
"version": "8.8.3", | ||
"description": "REST and Websocket plugin for harcon", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"assign.js": "^2.8.0", | ||
"clerobee": "^0.9.6", | ||
"clerobee": "^0.9.7", | ||
"connect-rest": "^3.0.16", | ||
"harcon": "^8.8.1", | ||
"harcon": "^8.8.2", | ||
"isa.js": "^2.2.1", | ||
@@ -42,5 +42,5 @@ "proback.js": "^2.1.6", | ||
"socket.io-client": "~2", | ||
"pino": "^4.16.0", | ||
"pino": "^4.16.1", | ||
"watch": "^1.0.2", | ||
"webpack": "^4.5.0" | ||
"webpack": "^4.6.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "engines": { |
@@ -29,2 +29,3 @@ const assert = require('assert') | ||
let socketClient, socketJSONRPCClient | ||
let port | ||
@@ -126,3 +127,3 @@ let fs = require('fs') | ||
let port = process.env.PORT || 8181 | ||
port = process.env.PORT || 8181 | ||
@@ -162,2 +163,20 @@ server.listen( port, () => { | ||
describe('parallelism', function () { | ||
it('Alize silent', async function () { | ||
this.timeout(15000) | ||
await Proback.timeout( 5000 ) | ||
for (let i = 1; i <= 10; ++i) { | ||
await Proback.timeout( i * 25 ) | ||
let time = Date.now() | ||
httphelper.post( 'http://localhost:' + port + '/Harcon', null, { division: 'King', event: 'Alizee.silent', params: [ ] } ).then( (res) => { | ||
console.log( (Date.now() - time) + ' :: ' + res ) | ||
} ).catch( (reason) => { | ||
console.log( (Date.now() - time) + ' !! ' + reason ) | ||
} ) | ||
} | ||
await Proback.timeout( 5000 ) | ||
}) | ||
}) | ||
describe('Test Websocket calls', function () { | ||
@@ -164,0 +183,0 @@ it('Division-less', function (done) { |
61988
1298
Updatedclerobee@^0.9.7
Updatedharcon@^8.8.2