Skip to content

Commit 5d4bcb6

Browse files
committed
test: fix broken test
1 parent 1c13a92 commit 5d4bcb6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

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

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

11-
types.setTypeParser('special oid that will throw', function () {
11+
// when -1 becomes an actual type, replace it with something else
12+
var invalidTypeOid = -1
13+
14+
types.setTypeParser(invalidTypeOid, function () {
1215
throw typeParserError
1316
})
1417

@@ -20,7 +23,7 @@ const emitFakeEvents = (con) => {
2023
fields: [
2124
{
2225
name: 'boom',
23-
dataTypeID: 'special oid that will throw',
26+
dataTypeID: invalidTypeOid,
2427
},
2528
],
2629
})

0 commit comments

Comments
 (0)