Skip to content

Conversation

Spikhalskiy
Copy link
Contributor

What was changed

Switch SelfAdvancingTimerImplTest to use fixed clock to reduce flakes and improve the quality of checks
SelfAdvancingTimerImpl now updates the time before scheduling

Why?

Fixed mocked clock remove test flakes that could happen because of the load.
It also improves the quality of the test, switching to the fixed clock allowed to catch a problem that SelfAdvancingTimerImpl#schedule could use an outdated timestamp.

Closes #726

… and improve the quality of checks

SelfAdvancingTimerImpl now updates the time before scheduling
Issue temporalio#726
@Spikhalskiy Spikhalskiy merged commit a2c6cca into temporalio:master Sep 16, 2021
@Spikhalskiy Spikhalskiy deleted the issue-726 branch April 15, 2022 20:11
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.

SelfAdvancingTimerImplTest flakes when test machine is under load

3 participants