Skip to content

Fixing flaky scheduler test#1411

Merged
fjtirado merged 1 commit into
serverlessworkflow:mainfrom
fjtirado:Fixing_flaky_scheduler_test
May 29, 2026
Merged

Fixing flaky scheduler test#1411
fjtirado merged 1 commit into
serverlessworkflow:mainfrom
fjtirado:Fixing_flaky_scheduler_test

Conversation

@fjtirado
Copy link
Copy Markdown
Collaborator

There was an implicit race condition between the start().join() and the scheduledInstances()

Copilot AI review requested due to automatic review settings May 29, 2026 09:40
There was an implicit race condition between the start().join() and the
scheduledInstances()

Signed-off-by: fjtirado <ftirados@redhat.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a flaky scheduler test by removing a race between workflow completion and the assertion on scheduled instances.

Changes:

  • Creates the workflow instance before starting it.
  • Moves the empty scheduled-instance assertion to occur before start().join().
  • Starts the instance afterward and continues awaiting the scheduled instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fjtirado fjtirado merged commit 57fb070 into serverlessworkflow:main May 29, 2026
3 checks passed
@fjtirado fjtirado deleted the Fixing_flaky_scheduler_test branch May 29, 2026 10:00
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