Skip to content

Commit dfc3f02

Browse files
Bouncheckavelanarius
authored andcommitted
Update regex in MapperUDTTest
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.
1 parent df622ab commit dfc3f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,9 @@ public void should_throw_error_when_table_is_altered_and_is_not_compatible_anymo
560560
} catch (InvalidQueryException e) {
561561
// Error message varies by C* version.
562562
assertThat(e.getMessage())
563+
// "Unrecognized name mainaddress" since scylla-5.4.0-rc0 and scylla-2024.1.0-rc1
563564
.matches(
564-
"(Undefined name mainaddress in selection clause|Undefined column name mainaddress.*)");
565+
"(Unrecognized name mainaddress|Undefined name mainaddress in selection clause|Undefined column name mainaddress.*)");
565566
}
566567
// trying to use a new mapper
567568
try {

0 commit comments

Comments
 (0)