File tree Expand file tree Collapse file tree
packages/pg/test/integration/gh-issues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ const testErrorBuffer = (bufferName, errorBuffer) => {
104104 if ( ! cli . native ) {
105105 assert ( errorHit )
106106 // further queries on the client should fail since its in an invalid state
107- await assert . rejects ( ( ) => client . query ( 'SELECTR NOW()' ) , 'Further queries on the client should reject' )
107+ await assert . rejects ( client . query ( 'SELECT NOW()' ) , {
108+ message : 'Client has encountered a connection error and is not queryable' ,
109+ } )
108110 }
109111
110112 await closeServer ( )
@@ -129,7 +131,9 @@ const testErrorBuffer = (bufferName, errorBuffer) => {
129131 if ( ! cli . native ) {
130132 assert ( errorHit )
131133 // further queries on the client should fail since its in an invalid state
132- await assert . rejects ( ( ) => client . query ( 'SELECTR NOW()' ) , 'Further queries on the client should reject' )
134+ await assert . rejects ( client . query ( 'SELECT NOW()' ) , {
135+ message : 'Client has encountered a connection error and is not queryable' ,
136+ } )
133137 }
134138
135139 await client . end ( )
You can’t perform that action at this time.
0 commit comments