@@ -167,8 +167,8 @@ suite.testAsync('builds simple string', async function () {
167
167
var config = {
168
168
user : 'brian' ,
169
169
password : 'xyz' ,
170
- port : 888 ,
171
170
host : 'localhost' ,
171
+ port : 888 ,
172
172
database : 'bam' ,
173
173
}
174
174
var subject = new ConnectionParameters ( config )
@@ -179,8 +179,8 @@ suite.testAsync('builds simple string', async function () {
179
179
var parts = constring . split ( ' ' )
180
180
checkForPart ( parts , "user='brian'" )
181
181
checkForPart ( parts , "password='xyz'" )
182
- checkForPart ( parts , "port='888'" )
183
182
checkForPart ( parts , `hostaddr='${ dnsHost } '` )
183
+ checkForPart ( parts , "port='888'" )
184
184
checkForPart ( parts , "dbname='bam'" )
185
185
resolve ( )
186
186
} )
@@ -191,8 +191,8 @@ suite.test('builds dns string', async function () {
191
191
var config = {
192
192
user : 'brian' ,
193
193
password : 'asdf' ,
194
- port : 5432 ,
195
194
host : 'localhost' ,
195
+ port : 5432 ,
196
196
}
197
197
var subject = new ConnectionParameters ( config )
198
198
const dnsHost = await getDNSHost ( config . host )
@@ -211,8 +211,8 @@ suite.test('error when dns fails', function () {
211
211
var config = {
212
212
user : 'brian' ,
213
213
password : 'asf' ,
214
- port : 5432 ,
215
214
host : 'asdlfkjasldfkksfd#!$!!!!..com' ,
215
+ port : 5432 ,
216
216
}
217
217
var subject = new ConnectionParameters ( config )
218
218
subject . getLibpqConnectionString (
@@ -227,8 +227,8 @@ suite.test('connecting to unix domain socket', function () {
227
227
var config = {
228
228
user : 'brian' ,
229
229
password : 'asf' ,
230
- port : 5432 ,
231
230
host : '/tmp/' ,
231
+ port : 5432 ,
232
232
}
233
233
var subject = new ConnectionParameters ( config )
234
234
subject . getLibpqConnectionString (
@@ -245,8 +245,8 @@ suite.test('config contains quotes and backslashes', function () {
245
245
var config = {
246
246
user : 'not\\brian' ,
247
247
password : "bad'chars" ,
248
- port : 5432 ,
249
248
host : '/tmp/' ,
249
+ port : 5432 ,
250
250
}
251
251
var subject = new ConnectionParameters ( config )
252
252
subject . getLibpqConnectionString (
@@ -277,8 +277,8 @@ suite.test('password contains < and/or > characters', function () {
277
277
var sourceConfig = {
278
278
user : 'brian' ,
279
279
password : 'hello<ther>e' ,
280
- port : 5432 ,
281
280
host : 'localhost' ,
281
+ port : 5432 ,
282
282
database : 'postgres' ,
283
283
}
284
284
var connectionString =
@@ -333,8 +333,8 @@ suite.test('ssl is set on client', function () {
333
333
var sourceConfig = {
334
334
user : 'brian' ,
335
335
password : 'hello<ther>e' ,
336
- port : 5432 ,
337
336
host : 'localhost' ,
337
+ port : 5432 ,
338
338
database : 'postgres' ,
339
339
ssl : {
340
340
sslmode : 'verify-ca' ,
0 commit comments