A Twitch.tv viewer reward and games system.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
var common = require('../../common'); var connection = common.createConnection({port: common.bogusPort}); var assert = require('assert');
var errors = {};
connection.connect(function(err) { assert.equal(errors.a, undefined); errors.a = err; });
connection.query('SELECT 1', function(err) { assert.equal(errors.b, undefined); errors.b = err; });
process.on('exit', function() { assert.equal(errors.a.code, 'ECONNREFUSED'); assert.equal(errors.a.fatal, true); assert.strictEqual(errors.a, errors.b); });
|