Skip to content

Commit 4902151

Browse files
committed
fix: set time limits
1 parent 23bcc42 commit 4902151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigcodebench/gen/util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def trusted_exec(code, test_code, task_id, max_as_limit, max_data_limit, max_sta
4949
suite = loader.loadTestsFromTestCase(TestCases)
5050
test_result = unittest.TestResult()
5151
start = time.time()
52-
with safe_environment(), swallow_io():
52+
with safe_environment(), swallow_io(), time_limit(seconds=120):
5353
suite.run(test_result)
5454

5555
# Needed for cleaning up.

0 commit comments

Comments
 (0)