Skip to content

Commit eed27e8

Browse files
mgamanhothegridman
authored andcommitted
COH-26993 - address timeouts in slow environments
1 parent 292727c commit eed27e8

File tree

1 file changed

+13
-0
lines changed
  • bedrock-testing-support/src/main/java/com/oracle/bedrock/testsupport/deferred

1 file changed

+13
-0
lines changed

bedrock-testing-support/src/main/java/com/oracle/bedrock/testsupport/deferred/DeferredMatch.java

+13
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ else if (matcher.matches(lastUsedMatchValue))
153153
{
154154
throw e;
155155
}
156+
catch (RuntimeException e)
157+
{
158+
if (matcher instanceof ThrowableMatcher)
159+
{
160+
ThrowableMatcher throwableMatcher = (ThrowableMatcher) matcher;
161+
162+
return throwableMatcher.getMatcher().matches(e);
163+
}
164+
else
165+
{
166+
throw e;
167+
}
168+
}
156169
catch (Exception e)
157170
{
158171
if (matcher instanceof ThrowableMatcher)

0 commit comments

Comments
 (0)