mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 23:07:45 +00:00
[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:
parent
8d542da89d
commit
76b027a979
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user