File tree
Expand file treeCollapse file tree1 file changed
+5
-2
lines changed packages/pg/test/unit/client
Expand file treeCollapse file tree1 file changed
+5
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -8,7 +8,10 @@ const suite = new helper.Suite()
|
8 | 8 |
|
9 | 9 | var typeParserError = new Error('TEST: Throw in type parsers')
|
10 | 10 |
|
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 () { |
12 | 15 | throw typeParserError
|
13 | 16 | })
|
14 | 17 |
|
@@ -20,7 +23,7 @@ const emitFakeEvents = (con) => {
|
20 | 23 | fields: [
|
21 | 24 | {
|
22 | 25 | name: 'boom',
|
23 |
| -dataTypeID: 'special oid that will throw', |
| 26 | +dataTypeID: invalidTypeOid, |
24 | 27 | },
|
25 | 28 | ],
|
26 | 29 | })
|
|
You can’t perform that action at this time.
0 commit comments