Skip to content

fix: allow mock clock Timers to accept negative duration #13592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jun 18, 2024

The standard library NewTimer, AfterFunc and Reset allow negative durations, so our mock clock library should as well.

@spikecurtis spikecurtis requested review from johnstcn and mafredri June 18, 2024 06:49
@spikecurtis spikecurtis marked this pull request as ready for review June 18, 2024 06:50
@spikecurtis spikecurtis merged commit d0b2f61 into main Jun 18, 2024
31 checks passed
@spikecurtis spikecurtis deleted the spike/clock-testing-timer-negative-duration branch June 18, 2024 11:40
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants