Skip to content

Fix reversed time in spec - #5768

Merged
rmosolgo merged 1 commit into
rmosolgo:masterfrom
dpep:fix-async-dataloader-parallel-test
Oct 5, 2026
Merged

rmosolgo merged 1 commit into
rmosolgo:masterfrom
dpep:fix-async-dataloader-parallel-test

Conversation

@dpep

@dpep dpep commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

In the AsyncDataloader "works with sources" spec, the "Already-loaded values returned instantly" check computed started_at_2 - ended_at_2, which is a negative duration. assert_in_delta compares the absolute difference, so it passed, but it read backwards. This swaps it to ended_at_2 - started_at_2.

It's test-only, with no change to what passes. The spec still passes, and rubocop is clean.

`started_at_2 - ended_at_2` is negative; assert_in_delta compares the
absolute difference, so it passed, but it read backwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dpep
dpep force-pushed the fix-async-dataloader-parallel-test branch from 85ad742 to 7cebbfc Compare October 5, 2026 00:15
@dpep dpep changed the title Loosen the upper bound in the async dataloader parallelism test Fix reversed elapsed time in async dataloader spec Oct 5, 2026
@dpep dpep changed the title Fix reversed elapsed time in async dataloader spec Fix reversed time in spec Oct 5, 2026
@dpep
dpep marked this pull request as ready for review October 5, 2026 00:21
@rmosolgo

rmosolgo commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Fair enough!

@rmosolgo
rmosolgo merged commit c13a6a5 into rmosolgo:master Oct 5, 2026
15 checks passed
@dpep
dpep deleted the fix-async-dataloader-parallel-test branch October 5, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants