File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,11 @@ describe('pool', function() {
86
86
87
87
it ( 'can close multiple times on a pool' , async function ( ) {
88
88
const pool = new pg . Pool ( { max : 1 } )
89
- const run = ( ) =>
90
- new Promise ( async resolve => {
91
- const cursor = new Cursor ( text )
92
- const client = await pool . connect ( )
93
- client . query ( cursor )
89
+ const run = async ( ) => {
90
+ const cursor = new Cursor ( text )
91
+ const client = await pool . connect ( )
92
+ client . query ( cursor )
93
+ new Promise ( resolve => {
94
94
cursor . read ( 25 , function ( err ) {
95
95
assert . ifError ( err )
96
96
cursor . close ( function ( err ) {
@@ -100,6 +100,7 @@ describe('pool', function() {
100
100
} )
101
101
} )
102
102
} )
103
+ }
103
104
await Promise . all ( [ run ( ) , run ( ) , run ( ) ] )
104
105
await pool . end ( )
105
106
} )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ describe('transactions', () => {
28
28
await client . end ( )
29
29
} )
30
30
31
- it . only ( 'can execute multiple statements in a transaction if no data' , async ( ) => {
31
+ it ( 'can execute multiple statements in a transaction if no data' , async ( ) => {
32
32
const client = new pg . Client ( )
33
33
await client . connect ( )
34
34
await client . query ( 'begin' )
You can’t perform that action at this time.
0 commit comments