-
Notifications
You must be signed in to change notification settings - Fork 128
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
Conversation
@@ -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])) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Ditto.