Skip to content

Commit

Permalink
Fix for windows timeout testing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tuncbkose committed Mar 22, 2023
1 parent 653de17 commit 6f58b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nbgrader/tests/apps/test_nbgrader_autograde.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ def test_autograde_timeout(self, db, course_dir):
self._copy_file(join("files", "timeout.ipynb"), join(course_dir, "submitted", "bar", "ps1", "p1.ipynb"))

output = run_nbgrader(["autograde", "ps1", "--db", db, "--student", "foo"])
output = run_nbgrader(["autograde", "ps1", "--db", db, "--student", "bar", "--Execute.timeout=1"])
# timeout=2 secs, 1 was causing an asyncio error on Windows
output = run_nbgrader(["autograde", "ps1", "--db", db, "--student", "bar", "--Execute.timeout=2"])

# Check timeout config changes function based on timeout config
with Gradebook(db) as gb:
Expand Down

0 comments on commit 6f58b06

Please sign in to comment.