Skip to content

Commit 87f4fa0

Browse files
committed
Make assertion stricter in test
1 parent 59e0ef7 commit 87f4fa0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/AllSupportedFieldsTestCase.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -603,15 +603,7 @@ public void testRowEnrich() throws IOException {
603603
TransportVersion coordinatorVersion = responseAndCoordinatorVersion.v2();
604604
TransportVersion expectedMinimumVersion = minVersion(localNodeToInfo());
605605

606-
Map<String, Object> profile = (Map<String, Object>) response.get("profile");
607-
Integer actualMinimumVersion = (Integer) profile.get("minimumTransportVersion");
608-
if (minVersion(localNodeToInfo()).supports(ESQL_USE_MINIMUM_VERSION_FOR_ENRICH_RESOLUTION)
609-
// Some nodes don't send back the minimum transport version because they're too old to do that.
610-
// In this case, the determined minimum version will be that of the coordinator.
611-
|| (coordinatorVersion.supports(ESQL_USE_MINIMUM_VERSION_FOR_ENRICH_RESOLUTION)
612-
&& actualMinimumVersion != coordinatorVersion.id())) {
613-
assertMinimumVersion(expectedMinimumVersion, responseAndCoordinatorVersion, false, false);
614-
}
606+
assertMinimumVersion(expectedMinimumVersion, responseAndCoordinatorVersion, false, false);
615607

616608
assertNoPartialResponse(response);
617609

0 commit comments

Comments
 (0)