@@ -94,7 +94,7 @@ describe('error recovery', () => {
94
94
const pool = new Pool ( { max : 1 , connectionTimeoutMillis : 400 , statement_timeout : 400 } )
95
95
96
96
const res1 = await pool . query ( 'SELECT 1 AS a' )
97
- assert . deepStrictEqual ( res1 . rows , [ { a :1 } ] )
97
+ assert . deepStrictEqual ( res1 . rows , [ { a : 1 } ] )
98
98
99
99
const query = new QueryStream ( 'SELECT 2 AS b' )
100
100
const client = await pool . connect ( )
@@ -106,16 +106,16 @@ describe('error recovery', () => {
106
106
await client . release ( )
107
107
108
108
const res2 = await pool . query ( 'SELECT 4 AS d' )
109
- assert . deepStrictEqual ( res2 . rows , [ { d :4 } ] )
109
+ assert . deepStrictEqual ( res2 . rows , [ { d : 4 } ] )
110
110
111
111
await pool . end ( )
112
112
} )
113
113
114
114
it ( 'should work if used after syntax error' , async ( ) => {
115
- const pool = new Pool ( { max : 1 , statement_timeout : 100 } ) ; // statement_timeout is required here, so maybe this is just another timeout error?
115
+ const pool = new Pool ( { max : 1 , statement_timeout : 100 } ) // statement_timeout is required here, so maybe this is just another timeout error?
116
116
117
117
const res1 = await pool . query ( 'SELECT 1 AS a' )
118
- assert . deepStrictEqual ( res1 . rows , [ { a :1 } ] )
118
+ assert . deepStrictEqual ( res1 . rows , [ { a : 1 } ] )
119
119
120
120
const query = new QueryStream ( 'SELECT 2 AS b' )
121
121
const client = await pool . connect ( )
@@ -127,7 +127,7 @@ describe('error recovery', () => {
127
127
await client . release ( )
128
128
129
129
const res2 = await pool . query ( 'SELECT 4 AS d' )
130
- assert . deepStrictEqual ( res2 . rows , [ { d :4 } ] )
130
+ assert . deepStrictEqual ( res2 . rows , [ { d : 4 } ] )
131
131
132
132
await pool . end ( )
133
133
} )
@@ -165,7 +165,7 @@ describe('error recovery', () => {
165
165
166
166
// Subsequent query on same connection should succeed
167
167
const res = await conn . query ( 'SELECT 1 AS a;' )
168
- assert . deepStrictEqual ( res . rows , [ { a :1 } ] )
168
+ assert . deepStrictEqual ( res . rows , [ { a : 1 } ] )
169
169
170
170
conn . release ( )
171
171
await pool . end ( )
0 commit comments