mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-08-16 07:28:40 +02:00
15 lines
424 B
JavaScript
15 lines
424 B
JavaScript
var common = require('../../common');
|
|
var assert = require('assert');
|
|
var Connection = require(common.lib + '/Connection');
|
|
var pool = common.createPool();
|
|
|
|
var connectionEventHappened = false;
|
|
pool.on('connection', function(connection) {
|
|
connectionEventHappened = true;
|
|
})
|
|
|
|
pool.getConnection(function(err, connection) {
|
|
if (err) throw err;
|
|
assert.equal(connectionEventHappened, true);
|
|
pool.end();
|
|
}); |