Skip to content

Commit

Permalink
Fix lint & enable all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Oct 30, 2019
1 parent 507c7ea commit cedce4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions test/pool.js
Expand Up @@ -86,11 +86,11 @@ describe('pool', function() {

it('can close multiple times on a pool', async function() {
const pool = new pg.Pool({ max: 1 })
const run = () =>
new Promise(async resolve => {
const cursor = new Cursor(text)
const client = await pool.connect()
client.query(cursor)
const run = async () => {
const cursor = new Cursor(text)
const client = await pool.connect()
client.query(cursor)
new Promise(resolve => {
cursor.read(25, function(err) {
assert.ifError(err)
cursor.close(function(err) {
Expand All @@ -100,6 +100,7 @@ describe('pool', function() {
})
})
})
}
await Promise.all([run(), run(), run()])
await pool.end()
})
Expand Down
2 changes: 1 addition & 1 deletion test/transactions.js
Expand Up @@ -28,7 +28,7 @@ describe('transactions', () => {
await client.end()
})

it.only('can execute multiple statements in a transaction if no data', async () => {
it('can execute multiple statements in a transaction if no data', async () => {
const client = new pg.Client()
await client.connect()
await client.query('begin')
Expand Down

0 comments on commit cedce4b

Please sign in to comment.