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: Unskip a flaky feed API test #3269

Merged
merged 6 commits into from
Jul 30, 2024
Merged

test: Unskip a flaky feed API test #3269

merged 6 commits into from
Jul 30, 2024

Conversation

ukstv
Copy link
Contributor

@ukstv ukstv commented Jul 29, 2024

Ditto.

@ukstv ukstv requested review from stbrody and JulissaDantes July 29, 2024 13:36
@@ -114,14 +113,14 @@ describe('Ceramic feed', () => {
return emissions.length >= 4 // Recon gives you more events :(
}, 5000)
// model.create
expect(emissions[0].commitId).toEqual(model.allCommitIds[0])
expect(String(emissions[0].commitId)).toEqual(String(model.allCommitIds[0]))
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, can you explain what was going wrong here and why casting to a string prevents the stack overflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is an experimental (let me be honest here) approach based on some previous experience. Loong time ago we saw something similar with Jest unable in some cases to correctly compare StreamIDs or CommitIDs into.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. Not ideal, but worth giving it a shot and seeing how it fairs

Copy link
Contributor

@JulissaDantes JulissaDantes left a comment

Choose a reason for hiding this comment

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

Thank you!

@ukstv ukstv merged commit f943ed9 into develop Jul 30, 2024
7 checks passed
@ukstv ukstv deleted the su/flaky-stream-test branch July 30, 2024 15:06
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