postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.7k stars 357 forks source link

Facing Error: read ECONNRESET while running tests in the package #474

Open ossdev07 opened 5 years ago

ossdev07 commented 5 years ago

Have installed rabbitmq-server and installed this package. While running tests for this package using command npm test facing ECONNRESET error.

Facing below issue in debian, nodejs v10.8 and RabbitMQ 3.3.5. test/test-basic-return.js: Error: read ECONNRESET at TCP.onread (net.js:660:25) at Object.run (/node/node-amqp/test/harness.js:49:23) at Object. (/node/node-amqp/test/test-basic-return.js:1:22) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:266:19)

Downloaded the current commit and connection.js file has destroy function called as mentioned in ticket #300 . case methods.connectionCloseOk: debug && debug("Received close-ok from server, closing socket"); this.socket.end(); this.socket.destroy(); break;

But still facing this issue. Please suggest me on solving this issue. Thanks.