test-long-stack-traces-for-connection-errors.js 295 B

12345678910111213
  1. var common = require('../../common');
  2. var connection = common.createConnection({port: common.bogusPort});
  3. var assert = require('assert');
  4. var err;
  5. connection.connect(function(_err) {
  6. err = _err;
  7. });
  8. process.on('exit', function() {
  9. assert.ok(err.stack.indexOf(__filename) > 0);
  10. });