Skip to content

Commit cfc10d2

Browse files
committed
fix tests
1 parent d8661d6 commit cfc10d2

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

server/src/test/java/org/elasticsearch/TransportVersionTests.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -402,17 +402,10 @@ public void testComment() {
402402
}
403403

404404
public void testMoreLikeThis() {
405-
IllegalStateException ise = expectThrows(IllegalStateException.class, () -> TransportVersion.fromName("to_child_lock_join_query"));
406-
assertThat(
407-
ise.getMessage(),
408-
is(
409-
"Unknown transport version [to_child_lock_join_query]. "
410-
+ "Did you mean [to_child_block_join_query]? "
411-
+ "If this is a new transport version, run './gradle generateTransportVersion'."
412-
)
405+
IllegalStateException ise = expectThrows(
406+
IllegalStateException.class,
407+
() -> TransportVersion.fromName("brand_new_version_unrelated_to_others")
413408
);
414-
415-
ise = expectThrows(IllegalStateException.class, () -> TransportVersion.fromName("brand_new_version_unrelated_to_others"));
416409
assertThat(
417410
ise.getMessage(),
418411
is(

0 commit comments

Comments
 (0)