From 7e61d92a54ee47fa698c55824fff6835418d3f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20B=C4=85czkowski?= Date: Wed, 3 Jan 2024 15:45:12 +0100 Subject: [PATCH] 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. --- .../test/java/com/datastax/driver/mapping/MapperUDTTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java b/driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java index 12fb9b4f4b5..1c5f206aea0 100644 --- a/driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java +++ b/driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java @@ -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 {