@@ -167,8 +167,8 @@ suite.testAsync('builds simple string', async function () {
167167 var config = {
168168 user : 'brian' ,
169169 password : 'xyz' ,
170- port : 888 ,
171170 host : 'localhost' ,
171+ port : 888 ,
172172 database : 'bam' ,
173173 }
174174 var subject = new ConnectionParameters ( config )
@@ -179,8 +179,8 @@ suite.testAsync('builds simple string', async function () {
179179 var parts = constring . split ( ' ' )
180180 checkForPart ( parts , "user='brian'" )
181181 checkForPart ( parts , "password='xyz'" )
182- checkForPart ( parts , "port='888'" )
183182 checkForPart ( parts , `hostaddr='${ dnsHost } '` )
183+ checkForPart ( parts , "port='888'" )
184184 checkForPart ( parts , "dbname='bam'" )
185185 resolve ( )
186186 } )
@@ -191,8 +191,8 @@ suite.test('builds dns string', async function () {
191191 var config = {
192192 user : 'brian' ,
193193 password : 'asdf' ,
194- port : 5432 ,
195194 host : 'localhost' ,
195+ port : 5432 ,
196196 }
197197 var subject = new ConnectionParameters ( config )
198198 const dnsHost = await getDNSHost ( config . host )
@@ -211,8 +211,8 @@ suite.test('error when dns fails', function () {
211211 var config = {
212212 user : 'brian' ,
213213 password : 'asf' ,
214- port : 5432 ,
215214 host : 'asdlfkjasldfkksfd#!$!!!!..com' ,
215+ port : 5432 ,
216216 }
217217 var subject = new ConnectionParameters ( config )
218218 subject . getLibpqConnectionString (
@@ -227,8 +227,8 @@ suite.test('connecting to unix domain socket', function () {
227227 var config = {
228228 user : 'brian' ,
229229 password : 'asf' ,
230- port : 5432 ,
231230 host : '/tmp/' ,
231+ port : 5432 ,
232232 }
233233 var subject = new ConnectionParameters ( config )
234234 subject . getLibpqConnectionString (
@@ -245,8 +245,8 @@ suite.test('config contains quotes and backslashes', function () {
245245 var config = {
246246 user : 'not\\brian' ,
247247 password : "bad'chars" ,
248- port : 5432 ,
249248 host : '/tmp/' ,
249+ port : 5432 ,
250250 }
251251 var subject = new ConnectionParameters ( config )
252252 subject . getLibpqConnectionString (
@@ -277,8 +277,8 @@ suite.test('password contains < and/or > characters', function () {
277277 var sourceConfig = {
278278 user : 'brian' ,
279279 password : 'hello<ther>e' ,
280- port : 5432 ,
281280 host : 'localhost' ,
281+ port : 5432 ,
282282 database : 'postgres' ,
283283 }
284284 var connectionString =
@@ -333,8 +333,8 @@ suite.test('ssl is set on client', function () {
333333 var sourceConfig = {
334334 user : 'brian' ,
335335 password : 'hello<ther>e' ,
336- port : 5432 ,
337336 host : 'localhost' ,
337+ port : 5432 ,
338338 database : 'postgres' ,
339339 ssl : {
340340 sslmode : 'verify-ca' ,
0 commit comments