Skip to content

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Jul 29, 2025

Add a sleep to let these tests clean up.

Hopefully: fixes #30337, fixes #29708

Add a sleep to let these tests clean up.
Copy link
Member

@MidhunSureshR MidhunSureshR 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 chasing this!
Would https://jestjs.io/docs/jest-object#jestrunalltimersasync help us in this context?

@richvdh
Copy link
Member Author

richvdh commented Jul 30, 2025

I think that only works if we're using fake timers (which these tests are not)?

@richvdh richvdh added this pull request to the merge queue Jul 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 30, 2025
@MidhunSureshR
Copy link
Member

If it does wait for all promises to resolve then IMO it's worth using fake timers just to prevent flakiness.

@richvdh
Copy link
Member Author

richvdh commented Jul 30, 2025

I think that would probably necessitate more of a rewrite of these tests than I fancy right now. I'm going to merge this as-is, in the hope it improve things.

@richvdh richvdh added this pull request to the merge queue Jul 30, 2025
Merged via the queue into develop with commit 7eb5a29 Jul 30, 2025
35 checks passed
@richvdh richvdh deleted the rav/deflake_matrixchat_test branch July 30, 2025 21:08
Dileep9999 pushed a commit to hemanth-nag/element-web that referenced this pull request Oct 8, 2025
Add a sleep to let these tests clean up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

3 participants