test-end-empty.js 266 B

1234567891011121314
  1. var common = require('../../common');
  2. var assert = require('assert');
  3. var pool = common.createPool();
  4. var poolEnded = false;
  5. pool.end(function(err) {
  6. poolEnded = true;
  7. if (err) throw err;
  8. });
  9. process.on('exit', function() {
  10. assert(poolEnded);
  11. });