Skip to content

Commit 862f75c

Browse files
committed
Tests: Decrease DELAY_BETWEEN_DOWNLOADS to zero
...because testing infrastructure no longer needs to race to observe a download that completed quickly
1 parent a7b553f commit 862f75c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Release Notes ⋮
1616
* macOS 14+ is now the minimum macOS version.
1717
Drop support for macOS 13.
1818

19+
* Testing improvements
20+
* Increased determinism and speed of tests that perform downloads.
21+
1922
### v2.0.0 (September 26, 2025)
2023

2124
Crystal 2.0 is a huge release with many new features and all-new tutorials!

src/crystal/tests/util/downloads.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
@contextmanager
1414
def delay_between_downloads_minimized() -> Iterator[None]:
1515
old_value = crystal.task.DELAY_BETWEEN_DOWNLOADS
16-
# NOTE: Must be long enough so that download tasks stay around long enough
17-
# to be observed, but short enough to provide a speed boost
18-
crystal.task.DELAY_BETWEEN_DOWNLOADS = 0.2
16+
crystal.task.DELAY_BETWEEN_DOWNLOADS = 0
1917
try:
2018
yield
2119
finally:

0 commit comments

Comments
 (0)