File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
server/src/test/java/org/elasticsearch Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments