Просмотр исходного кода

[TEST] Only assert on a generic AssertionError

The specific error might be lost on the transport layer and turned into a generic
AssertionError instead.

Closes #13599
Simon Willnauer 10 лет назад
Родитель
Сommit
76b027a979
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      core/src/test/java/org/elasticsearch/script/GroovyScriptIT.java

+ 1 - 2
core/src/test/java/org/elasticsearch/script/GroovyScriptIT.java

@@ -61,7 +61,6 @@ public class GroovyScriptIT extends ESIntegTestCase {
     }
 
     @Test
-    @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/13599")
     public void testGroovyExceptionSerialization() throws Exception {
         List<IndexRequestBuilder> reqs = new ArrayList<>();
         for (int i = 0; i < randomIntBetween(50, 500); i++) {
@@ -93,7 +92,7 @@ public class GroovyScriptIT extends ESIntegTestCase {
             assertThat(e.toString() + "should have contained GroovyScriptExecutionException",
                     e.toString().contains("GroovyScriptExecutionException"), equalTo(true));
             assertThat(e.toString()+ "should have contained an assert error",
-                    e.toString().contains("PowerAssertionError[assert false"), equalTo(true));
+                    e.toString().contains("AssertionError[assert false"), equalTo(true));
         }
     }