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.
 
 
 

23 lines
503 B

var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
var didEnd = false;
connection.connect();
connection.end(function(err) {
if (err) throw err;
didEnd = true;
});
var err;
connection.query('SELECT 1', function(_err) {
assert.equal(didEnd, false);
err = _err;
});
process.on('exit', function() {
assert.equal(didEnd, true);
assert.equal(err.code, 'PROTOCOL_ENQUEUE_AFTER_QUIT');
assert.equal(err.fatal, false);
});