Skip to content

Commit 7b234db

Browse files
Try to get thread dump if there is a serverside socket timeout exception.
1 parent 3e6929c commit 7b234db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/labkey/test/BaseWebDriverTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ private void handleFailure(Throwable error, @LoggedParam String testName)
984984
}
985985
try
986986
{
987-
if (wasCausedBy(error, Arrays.asList(TestTimeoutException.class, SocketTimeoutException.class)))
987+
if (wasCausedBy(error, Arrays.asList(TestTimeoutException.class, SocketTimeoutException.class)) ||
988+
wasCausedBy(error, Arrays.asList(RuntimeException.class, SocketTimeoutException.class)))
988989
ArtifactCollector.dumpThreads();
989990
}
990991
catch (RuntimeException | Error e)

0 commit comments

Comments
 (0)