Skip to content

Commit 9ffe103

Browse files
committed
Fix failing test against C* 4.0
1 parent 0b682c4 commit 9ffe103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilderExecutionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public void should_support_group_by() throws Exception {
875875
.groupBy("a", "clustering1"));
876876
fail("Expecting IQE");
877877
} catch (InvalidQueryException e) {
878-
assertThat(e.getMessage()).isEqualTo("Undefined column name clustering1");
878+
assertThat(e.getMessage()).startsWith("Undefined column name clustering1");
879879
}
880880

881881
try {
@@ -890,7 +890,7 @@ public void should_support_group_by() throws Exception {
890890
.groupBy("a", "b", "z"));
891891
fail("Expecting IQE");
892892
} catch (InvalidQueryException e) {
893-
assertThat(e.getMessage()).isEqualTo("Undefined column name z");
893+
assertThat(e.getMessage()).startsWith("Undefined column name z");
894894
}
895895

896896
// Test with composite partition key

0 commit comments

Comments
 (0)