@@ -67,7 +67,6 @@ function testErrors() {
67
67
return connResolved . query ( 'select 2+2 as qqq' ) ;
68
68
} )
69
69
. catch ( function ( err ) {
70
- console . log ( err ) ;
71
70
exceptionCaught = true ;
72
71
if ( connResolved ) {
73
72
connResolved . end ( ) ;
@@ -278,7 +277,8 @@ function testChangeUser() {
278
277
. then ( function ( ) {
279
278
return connResolved . query ( 'select current_user()' ) ;
280
279
} )
281
- . then ( function ( rows ) {
280
+ . then ( function ( result ) {
281
+ const [ rows , fields ] = result ;
282
282
assert . deepEqual ( onlyUsername ( rows [ 0 ] [ 'current_user()' ] ) , 'changeuser1' ) ;
283
283
return connResolved . changeUser ( {
284
284
user : 'changeuser2' ,
@@ -288,7 +288,8 @@ function testChangeUser() {
288
288
. then ( function ( ) {
289
289
return connResolved . query ( 'select current_user()' ) ;
290
290
} )
291
- . then ( function ( rows ) {
291
+ . then ( function ( result ) {
292
+ const [ rows , fields ] = result ;
292
293
assert . deepEqual ( onlyUsername ( rows [ 0 ] [ 'current_user()' ] ) , 'changeuser2' ) ;
293
294
return connResolved . changeUser ( {
294
295
user : 'changeuser1' ,
@@ -301,7 +302,8 @@ function testChangeUser() {
301
302
. then ( function ( ) {
302
303
return connResolved . query ( 'select current_user()' ) ;
303
304
} )
304
- . then ( function ( rows ) {
305
+ . then ( function ( result ) {
306
+ const [ rows , fields ] = result ;
305
307
assert . deepEqual ( onlyUsername ( rows [ 0 ] [ 'current_user()' ] ) , 'changeuser1' ) ;
306
308
doneChangeUser = true ;
307
309
return connResolved . end ( ) ;
0 commit comments