Fix timeout for PyLint and PyUnit Adapter

This commit is contained in:
Sebastian Serth
2020-05-14 01:52:37 +02:00
parent ba8e08aee4
commit b5c5790d7e
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ class PyLintAdapter < TestingFrameworkAdapter
passed = captures.first
failed = count - passed
begin
Timeout.timeout(2.seconds) do
assertion_error_matches = output[:stdout].scan(ASSERTION_ERROR_REGEXP).map { |match|
assertion_error_matches = Timeout.timeout(2.seconds) do
output[:stdout].scan(ASSERTION_ERROR_REGEXP).map { |match|
test = match.first.strip
description = match.second.strip
"#{test}: #{description}"