test-get-connection.js 305 B

1234567891011
  1. var common = require('../../common');
  2. var assert = require('assert');
  3. var Connection = require(common.lib + '/Connection');
  4. var pool = common.createPool();
  5. pool.getConnection(function(err, connection) {
  6. if (err) throw err;
  7. assert.ok(connection instanceof Connection);
  8. pool.end();
  9. });