Skip to content

Commit be791f9

Browse files
committed
Better handling of global timeout
1 parent b5f0714 commit be791f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/de/otto/jlineup/browser/Browser.java

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void takeScreenshots(final List<ScreenshotContext> screenshotContextList) throws
145145

146146
if (!notRanIntoTimeout) {
147147
LOG.error("Threadpool ran into timeout.");
148+
throw new TimeoutException("Global timeout of " + config.globalTimeout + " seconds was reached.");
148149
} else {
149150
LOG.info("Threadpool terminated.");
150151
}

0 commit comments

Comments
 (0)