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(); var assert = require('assert');
var didEnd = false; connection.connect(); connection.end(function(err) { if (err) throw err;
didEnd = true; });
var err; connection.on('error', function(_err) { err = _err; }); connection.query('SELECT 1');
process.on('exit', function() { assert.equal(didEnd, true); assert.equal(err.code, 'PROTOCOL_ENQUEUE_AFTER_QUIT'); assert.equal(err.fatal, false); });
|