Skip to content

Commit

Permalink
Relax assertions in failure recovery tests
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Dec 23, 2021
1 parent a4898a7 commit 0a4e629
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ protected void testNonSelect(Optional<Session> session, Optional<String> setupQu
.withCleanupQuery(cleanupQuery)
.experiencing(TASK_FAILURE, Optional.of(ErrorType.INTERNAL_ERROR))
.at(boundaryCoordinatorStage())
// original exception message is lost sometimes
// TODO(https://github.com/trinodb/trino/issues/10395 original exception message is lost sometimes
.failsAlways(failure -> failure.hasMessageFindingMatch("\\Q" + FAILURE_INJECTION_MESSAGE + "\\E|Remote task failed.*"));

assertThatQuery(query)
Expand All @@ -372,7 +372,8 @@ protected void testNonSelect(Optional<Session> session, Optional<String> setupQu
.withCleanupQuery(cleanupQuery)
.experiencing(TASK_FAILURE, Optional.of(ErrorType.INTERNAL_ERROR))
.at(rootStage())
.failsAlways(failure -> failure.hasMessageContaining(FAILURE_INJECTION_MESSAGE));
// TODO(https://github.com/trinodb/trino/issues/10395 original exception message is lost sometimes
.failsAlways(failure -> failure.hasMessageFindingMatch("\\Q" + FAILURE_INJECTION_MESSAGE + "\\E|Remote task failed.*"));

assertThatQuery(query)
.withSession(session)
Expand Down

0 comments on commit 0a4e629

Please sign in to comment.