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

test: fix flaky lifecycle test #7093

Merged
merged 1 commit into from
May 21, 2024
Merged

test: fix flaky lifecycle test #7093

merged 1 commit into from
May 21, 2024

Conversation

kwasniew
Copy link
Contributor

About the changes

Adding feature name check when reaching a certain lifecycle stage to check if we're looking at the right thing.

Important files

Discussion points

Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 11:18am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) May 21, 2024 11:18am

@@ -98,7 +98,8 @@ const uncompleteFeature = async (featureName: string, expectedCode = 200) => {
function reachedStage(feature: string, stage: StageName) {
return new Promise((resolve) =>
featureLifecycleService.on(STAGE_ENTERED, (event) => {
if (event.stage === stage) resolve(stage);
if (event.stage === stage && event.feature === feature)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

when you introduce feature to a method signature that would be cool if you used it :)

Copy link
Contributor

Choose a reason for hiding this comment

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

wow! I totally missed it!

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

Nice

@kwasniew kwasniew merged commit 45eff83 into main May 21, 2024
8 checks passed
@kwasniew kwasniew deleted the fix-flaky-lifecycle-test branch May 21, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants