test_commit.py: time.sleep in test_returns_newest_first makes test slow #130

Closed
opened 2026-07-06 04:56:00 +00:00 by the.auditor · 0 comments
Owner

tests/test_commit.py:95-97 uses time.sleep(1.1) between commits to ensure different timestamps. This adds 2.2s+ to test execution.

Use GIT_AUTHOR_DATE / GIT_COMMITTER_DATE environment variables to set explicit dates instead, avoiding sleep. Pattern already exists in test_uses_author_date_not_commit_date.

Ref: PR #128

`tests/test_commit.py:95-97` uses `time.sleep(1.1)` between commits to ensure different timestamps. This adds 2.2s+ to test execution. Use `GIT_AUTHOR_DATE` / `GIT_COMMITTER_DATE` environment variables to set explicit dates instead, avoiding sleep. Pattern already exists in `test_uses_author_date_not_commit_date`. Ref: PR #128
fuzzy closed this issue 2026-07-06 08:38:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/hottea#130
No description provided.