Skip to content

Commit

Permalink
Make time limit a floating point number
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinXPN committed Aug 9, 2023
1 parent 7f6dc6e commit 62920b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SubmissionRequest(DataClassJsonCamelMixIn):
code: dict[str, str]
language: str
memory_limit: int = 512 # MB
time_limit: int = 5 # seconds
time_limit: float = 5 # seconds
output_limit: float = 1 # MB

# In case of both problem and test_cases being provided, tests = test_cases + problem.tests
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/coderunners/test_hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_js(self):
}))

def test_csharp(self):
self.run_test(SubmissionRequest(test_cases=self.test_cases, language='C#', time_limit=5, code={
self.run_test(SubmissionRequest(test_cases=self.test_cases, language='C#', time_limit=10, code={
'main.cs': 'System.Console.WriteLine("Hello World!");',
}))

Expand Down

0 comments on commit 62920b2

Please sign in to comment.