mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
* 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
18 lines
437 B
JavaScript
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)
|
|
}))
|
|
})
|