Skip to content

Commit

Permalink
Update regex in MapperUDTTest
Browse files Browse the repository at this point in the history
The test method `should_throw_error_when_table_is_altered_and_is_not_compatible_anymore()`
fails due to Scylla using different error message since 5.4.0 and 2024.1.0.
This change adjusts the test regex accordingly.
  • Loading branch information
Bouncheck authored and avelanarius committed Jan 3, 2024
1 parent df622ab commit dfc3f02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,9 @@ public void should_throw_error_when_table_is_altered_and_is_not_compatible_anymo
} catch (InvalidQueryException e) {
// Error message varies by C* version.
assertThat(e.getMessage())
// "Unrecognized name mainaddress" since scylla-5.4.0-rc0 and scylla-2024.1.0-rc1
.matches(
"(Undefined name mainaddress in selection clause|Undefined column name mainaddress.*)");
"(Unrecognized name mainaddress|Undefined name mainaddress in selection clause|Undefined column name mainaddress.*)");
}
// trying to use a new mapper
try {
Expand Down

0 comments on commit dfc3f02

Please sign in to comment.