Skip to content

Commit 765c69c

Browse files
committed
changefeedccl: add to valid errors list in rand expr test
Updates the list of known valid pg errors to the rand expr test. Epic: none Fixes: #148640 Fixes: #148736 Fixes: #149164 Release note: None
1 parent 923e3b0 commit 765c69c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

pkg/ccl/changefeedccl/changefeed_test.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,19 +1362,22 @@ func TestChangefeedRandomExpressions(t *testing.T) {
13621362
// error, we unfortunately don't have the pgcode and have to
13631363
// rely on known strings.
13641364
validPgErrs := []string{
1365+
"argument is not an object",
13651366
"cannot subtract infinite dates",
1366-
"regexp compilation failed",
1367-
"invalid regular expression",
1368-
"invalid escape string",
1369-
"error parsing GeoJSON",
1367+
"dwithin distance cannot be less than zero",
13701368
"error parsing EWKB",
13711369
"error parsing EWKT",
1372-
"geometry type is unsupported",
1373-
"should be of length",
1374-
"dwithin distance cannot be less than zero",
1375-
"parameter has to be of type Point",
1370+
"error parsing GeoJSON",
13761371
"expected LineString",
1372+
"geometry type is unsupported",
1373+
"invalid escape string",
1374+
"invalid regular expression",
13771375
"no locations to init GEOS",
1376+
"parameter has to be of type Point",
1377+
"regexp compilation failed",
1378+
"result out of range",
1379+
"should be of length",
1380+
"unknown DateStyle parameter",
13781381
}
13791382
containsKnownPgErr := func(e error) (interface{}, bool) {
13801383
for _, v := range validPgErrs {

0 commit comments

Comments
 (0)