Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Include user in test postgres connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
timhudson committed May 16, 2015
1 parent b62a7d0 commit d486e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var concat = require('concat-stream')
var queryStream = require('./')

test('setup', function (t) {
pg.connect('postgres://localhost/postgres', function (err, client, done) {
pg.connect('postgres://postgres:@localhost/postgres', function (err, client, done) {
t.error(err, 'no error')

var query = 'DROP TABLE IF EXISTS test_random; CREATE TABLE test_random as SELECT generate_series(1,100) AS id, md5(random()::text) AS descr;'
Expand All @@ -19,7 +19,7 @@ test('setup', function (t) {
test('wraps postgres query in through-stream', function (t) {
t.plan(4)

pg.connect('postgres://localhost/postgres', function (err, client, done) {
pg.connect('postgres://postgres:@localhost/postgres', function (err, client, done) {
t.error(err, 'no error')

queryStream(client.query('SELECT * FROM random LIMIT 100'))
Expand Down

0 comments on commit d486e74

Please sign in to comment.