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.
 
 
 

24 lines
549 B

var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
connection.query('SET wait_timeout = 1');
var errorErr;
var endErr;
connection
.on('end', function(err) {
assert.ok(!endErr);
endErr = err;
})
.on('error', function(err) {
assert.ok(!errorErr);
errorErr = err;
});
process.on('exit', function() {
assert.strictEqual(errorErr.code, 'PROTOCOL_CONNECTION_LOST');
assert.strictEqual(errorErr.fatal, true);
assert.strictEqual(endErr, errorErr);
});