Fix lint & enable all tests

This commit is contained in:
Brian M. Carlson 2019-10-30 12:52:06 -05:00
parent 507c7eaca4
commit cedce4bded
2 changed files with 7 additions and 6 deletions

View File

@ -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) {
@ -100,6 +100,7 @@ describe('pool', function() {
})
})
})
}
await Promise.all([run(), run(), run()])
await pool.end()
})

View File

@ -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')