Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cortex/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import cortex
import pytest

@pytest.mark.timeout(600)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

A timeout of 600 seconds (10 minutes) is exceptionally long for a single test and can significantly delay CI feedback loops. This duration is largely driven by the fact that the test downloads the 'fsaverage' subject twice (once on line 13 and again on line 16 with download_again=True).

To improve efficiency and reduce the risk of hitting timeouts, consider refactoring the test to:

  1. Download the subject only once.
  2. Use a smaller mock subject if the goal is specifically to test the download mechanism.
  3. Mark the test with @pytest.mark.slow or a custom network marker so it can be optionally skipped during rapid local development.

def test_download_subject():
# Test that newly downloaded subjects are added to the current database.

Expand Down