icebob / microservices-benchmark

Benchmark of microservices frameworks for NodeJS
40 stars 12 forks source link

Moleculer - a promise was created in a handler but was not returned from it #3

Closed StarpTech closed 7 years ago

StarpTech commented 7 years ago

Hi, when i run the test on node 7.9.0 I get this error. It is produced from moleculer.

Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw
    at new Promise (E:\Repositorys\microservices-benchmark\node_modules\bluebird\js\release\promise.js:79:10)
icebob commented 7 years ago

I tried, but didn't get the warning

===========================
  Microservices benchmark
===========================

Platform info:
==============
   Windows_NT 6.1.7601 x64
   Node.JS: 7.10.0
   V8: 5.5.372.43
   Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz × 8

(node:7924) DeprecationWarning: 'root' is deprecated, use 'global'
["listen","subscribe","seneca_any_act"]
{"kind":"notice","notice":"hello seneca omxfkm2um2rz/1495911692247/7924/3.3.0/-","level":"info","when":1495911694196}
["client","subscribe","seneca_any_res"]
{"kind":"notice","notice":"hello seneca cdxmrmik7bpd/1495911691881/7924/3.3.0/-","level":"info","when":1495911694199}
["listen","open",{"type":"nats","role":"transport","hook":"listen","reconnect":true,"maxReconnectAttempts":9999,"reconnectTimeWait":1000}]
["client","open",{"type":"nats","pg":"","id":"pg:,type:nats","role":"transport","hook":"client","reconnect":true,"maxReconnectAttempts":9999,"reconnectTimeWait":1000}]
Suite: Call remote actions
√ Seneca*               2,330 rps
√ Hemera*               4,507 rps
√ Moleculer*            8,342 rps

   Seneca* (#)          0%          (2,330 rps)   (avg: 429μs)
   Hemera*         +93.42%          (4,507 rps)   (avg: 221μs)
   Moleculer*     +257.99%          (8,342 rps)   (avg: 119μs)
-----------------------------------------------------------------------
StarpTech commented 7 years ago

You have to run it with Node 7.9.0 I don't know in which version they produce this warning but it will break the tests.