test-ping.js 277 B

12345678910111213141516
  1. var common = require('../../common');
  2. var connection = common.createConnection();
  3. var assert = require('assert');
  4. var pingErr;
  5. connection.ping(function(err) {
  6. pingErr = err;
  7. });
  8. connection.end();
  9. process.on('exit', function() {
  10. assert.equal(pingErr, null);
  11. });