Skip to content

Commit f4afc94

Browse files
committed
Improve test
1 parent 4f061ae commit f4afc94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterLookupJoinFailuresIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ public void sendResponse(Exception exception) {
149149
Exception.class,
150150
() -> runQuery("FROM c*:logs-* | EVAL lookup_key = v | LOOKUP JOIN values_lookup ON lookup_key", randomBoolean())
151151
);
152-
assertThat(ex.getMessage(), containsString(simulatedFailure.getMessage()));
152+
String message = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
153+
assertThat(message, containsString(simulatedFailure.getMessage()));
153154
} finally {
154155
for (TransportService transportService : cluster(REMOTE_CLUSTER_1).getInstances(TransportService.class)) {
155156
MockTransportService ts = asInstanceOf(MockTransportService.class, transportService);

0 commit comments

Comments
 (0)