-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10867: Unflake timer start event test r=remcowesterhoud a=korthout ## Description <!-- Please explain the changes you made here. --> Most cases in the timer start event test were suffering from flakiness. This stabilizes these tests again. The cause of the flakiness was a race condition between time traveling and scheduling an upcoming timer: - the time would be increased after the deployment is completed - that includes writing all the deployment events (up to and including fully_distributed) - it does not await post-commit task execution - upcoming timers are scheduled in a post-commit task - this post-commit task could be executed after the time traveling - in that case the timer does not trigger after the time travel, as it is scheduled in the future This changes the time travel to guarantee that the post-commit tasks have been executed. It does that by awaiting that the engine reaches the end of the log. ## Related issues <!-- Which issues are closed by this PR or are related --> closes #10272 Co-authored-by: Nico Korthout <nico.korthout@camunda.com> Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
- Loading branch information
Showing
3 changed files
with
34 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters