Skip to content

Commit

Permalink
remove timeout logic for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Apr 3, 2024
1 parent 0f3d367 commit 9dee794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 8 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ markers =
task: A concept exercise task.
console_output_style =
classic
log_cli =
true
log_level =
DEBUG
log_format =
%(asctime)s %(levelname)s %(message)s
log_date_format =
%Y-%m-%d %H:%M:%S
8 changes: 1 addition & 7 deletions runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,7 @@ def run(indir: Directory, outdir: Directory, max_score: int, timeout_duration: i
# run the tests and report
reporter = ResultsReporter()
reporter.results.max_score = max_score
try:
@timeout_decorator.timeout(timeout_duration)
def run_tests():
pytest.main(_sanitize_args(args or []) + [str(tf) for tf in test_files], plugins=[reporter])
run_tests()
except TimeoutError:
reporter.results.error("Tests timed out after {} seconds".format(timeout_duration))
pytest.main(_sanitize_args(args or []) + [str(tf) for tf in test_files], plugins=[reporter])

# dump the report
out_file.write_text(reporter.results.as_json())
Expand Down

0 comments on commit 9dee794

Please sign in to comment.