Skip to content

Commit 8f0db30

Browse files
authored
Remove broken test (brianc#2529)
It’s missing `co.wrap`, so it doesn’t actually run (Mocha does nothing with the paused generator). The test group that follows it, “using an ended pool”, covers the same thing anyway.
1 parent d459479 commit 8f0db30

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/pg-pool/test/error-handling.js

-12
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ describe('pool error handling', function () {
6565
})
6666
})
6767

68-
describe('calling connect after end', () => {
69-
it('should return an error', function* () {
70-
const pool = new Pool()
71-
const res = yield pool.query('SELECT $1::text as name', ['hi'])
72-
expect(res.rows[0].name).to.equal('hi')
73-
const wait = pool.end()
74-
pool.query('select now()')
75-
yield wait
76-
expect(() => pool.query('select now()')).to.reject()
77-
})
78-
})
79-
8068
describe('using an ended pool', () => {
8169
it('rejects all additional promises', (done) => {
8270
const pool = new Pool()

0 commit comments

Comments
 (0)