[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
This commit is contained in:
Simon Willnauer 2015-09-16 09:21:09 +02:00
parent 8d542da89d
commit 76b027a979

View File

@ -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));
}
}