mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-08-16 07:28:40 +02:00
14 lines
266 B
JavaScript
14 lines
266 B
JavaScript
var common = require('../../common');
|
|
var assert = require('assert');
|
|
var pool = common.createPool();
|
|
var poolEnded = false;
|
|
|
|
pool.end(function(err) {
|
|
poolEnded = true;
|
|
if (err) throw err;
|
|
});
|
|
|
|
process.on('exit', function() {
|
|
assert(poolEnded);
|
|
});
|