test-long-stack-traces.js 370 B

1234567891011121314151617
  1. // Experimental: https://github.com/felixge/node-mysql/issues/198
  2. var common = require('../../common');
  3. var connection = common.createConnection();
  4. var assert = require('assert');
  5. var err;
  6. connection.query('invalid sql', function(_err) {
  7. err = _err;
  8. });
  9. connection.end();
  10. process.on('exit', function() {
  11. assert.ok(err.stack.indexOf(__filename) > 0);
  12. });