Correct the regex pattern for class path in testDieWithDignity() (#466)

Signed-off-by: Tianli Feng <ftianli@amazon.com>
This commit is contained in:
Tianli Feng 2021-03-26 16:18:39 -07:00 committed by GitHub
parent aeb0af0427
commit 503091ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ public class DieWithDignityIT extends OpenSearchRestTestCase {
try { try {
while (it.hasNext() && (fatalError == false || fatalErrorInThreadExiting == false)) { while (it.hasNext() && (fatalError == false || fatalErrorInThreadExiting == false)) {
final String line = it.next(); final String line = it.next();
if (line.matches(".*ERROR.*o\\.e\\.ExceptionsHelper.*javaRestTest-0.*fatal error.*")) { if (line.matches(".*ERROR.*o\\.o\\.ExceptionsHelper.*javaRestTest-0.*fatal error.*")) {
fatalError = true; fatalError = true;
} else if (line.matches(".*ERROR.*o\\.e\\.b\\.OpenSearchUncaughtExceptionHandler.*javaRestTest-0.*" } else if (line.matches(".*ERROR.*o\\.o\\.b\\.OpenSearchUncaughtExceptionHandler.*javaRestTest-0.*"
+ "fatal error in thread \\[Thread-\\d+\\], exiting.*")) { + "fatal error in thread \\[Thread-\\d+\\], exiting.*")) {
fatalErrorInThreadExiting = true; fatalErrorInThreadExiting = true;
assertTrue(it.hasNext()); assertTrue(it.hasNext());