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.
 
 
 

17 lines
411 B

var common = require('../../common');
var connection = common.createConnection({port: common.bogusPort});
var assert = require('assert');
connection.connect();
connection.query('SELECT 1');
var err;
connection.on('error', function(_err) {
assert.equal(err, undefined);
err = _err;
});
process.on('exit', function() {
assert.equal(err.code, 'ECONNREFUSED');
assert.equal(err.fatal, true);
});