postwait / node-amqp

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

test-connection-disconnect.js unit test failed #465

Closed mcgG closed 2 years ago

mcgG commented 6 years ago

Due to issue #462, there is something wrong with disconnect(), so I tried to run the unit test, but got the case failed, did I miss something? Why cbcnt should be equal 2?

assert.equal(cbcnt, 2);

  AssertionError [ERR_ASSERTION]: 1 == 2
      at process.<anonymous> (/home/mcgg/src/node-amqp/test/test-connection-disconnect.js:24:10)
      at emitOne (events.js:116:13)
      at process.emit (events.js:211:7)
      at process.emit (/home/mcgg/src/node-amqp/node_modules/source-map-support/source-map-support.js:439:21)
      at Object.<anonymous> (/home/mcgg/src/node-amqp/test/test-connection-disconnect.js:23:9)
      at Module._compile (module.js:635:30)
      at Object.Module._extensions..js (module.js:646:10)
      at Module.load (module.js:554:32)
      at tryModuleLoad (module.js:497:12)
      at Function.Module._load (module.js:489:3)
      at Function.Module.runMain (module.js:676:10)
      at startup (bootstrap_node.js:187:16)
      at bootstrap_node.js:608:3