Skip to content

Commit 1bde7d4

Browse files
authored
fix: test
1 parent 7303ef5 commit 1bde7d4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/pg/test/unit/client/throw-in-type-parser-tests.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ const suite = new helper.Suite()
88

99
var typeParserError = new TypeError('TEST: Throw in type parsers')
1010

11-
types.setTypeParser('special oid that will throw', function () {
12-
throw typeParserError
11+
suite.test('special oid that will throw', function (done) {
12+
try{
13+
types.setTypeParser('special oid that will throw', function () {
14+
throw typeParserError
15+
})
16+
assert.equal(true, false)
17+
} catch(err) {
18+
assert.equal(err, typeParserError)
19+
} finally {
20+
done()
21+
}
1322
})
1423

1524
const emitFakeEvents = (con) => {

0 commit comments

Comments
 (0)