node-postgres/test/unit/client/early-disconnect-tests.js
Brian C 8798e50ad3 Re-enable eslint with standard format (#1367)
* Work on converting lib to standard

* Finish updating lib

* Finish linting lib

* Format test files

* Add .eslintrc with standard format

* Supply full path to eslint bin

* Move lint command to package.json

* Add eslint as dev dependency
2017-07-15 12:05:58 -05:00

18 lines
437 B
JavaScript

'use strict'
var helper = require('./test-helper')
var net = require('net')
var pg = require('../../../lib/index.js')
/* console.log() messages show up in `make test` output. TODO: fix it. */
var server = net.createServer(function (c) {
c.destroy()
server.close()
})
server.listen(7777, function () {
var client = new pg.Client('postgres://localhost:7777')
client.connect(assert.calls(function (err) {
assert(err)
}))
})