Skip to content
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

Fix flaky reset test #713

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Fix flaky reset test #713

merged 1 commit into from
Nov 21, 2024

Conversation

dandavison
Copy link
Contributor

Fix a flaky test from #700

Prior to this commit, failures were fairly frequent, e.g. to reproduce:

for i in $(seq 1 25); do go test -v -count 1 -run '^TestSharedServerSuite/TestWorkflow_ResetBatch_ExcludeSignal$' github.com/temporalio/cli/temporalcli || break; done; echo $i

})
s.NoError(err)
return len(resp.Executions) > 0
}, 3*time.Second, 100*time.Millisecond, "Workflow failed to start")
Copy link
Contributor Author

@dandavison dandavison Nov 21, 2024

Choose a reason for hiding this comment

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

This code was waiting for the workflow to exist, whereas we needed to wait for the workflow task to be complete.

Copy link
Collaborator

@josh-berry josh-berry left a comment

Choose a reason for hiding this comment

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

Thanks for this, Dan!

@dandavison dandavison merged commit dd3072a into main Nov 21, 2024
7 checks passed
@dandavison dandavison deleted the fix-reset-test branch November 21, 2024 14:49
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.

3 participants