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

Refactor FXIOS-9855 #21636 Flaky tests #23545

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

lmarceau
Copy link
Contributor

@lmarceau lmarceau commented Dec 3, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

Couple of tests changes:

  • Introduced DispatchQueueInterface inside CreditCardBottomSheetViewModel to be able to use MockDispatchQueue for unit tests. This makes those test synchronous, which will remove some part of the flakiness hopefully.
  • ThrottlerTests were failing for me locally, now using setUp and tearDown to ensure fresh state on each test run.
  • func waitForCondition(timeout:condition:) wasn't used, so removing it
  • Added file and line to unwrapAsync as I saw some failing tests without knowing on which line exactly it was failing.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@lmarceau lmarceau requested a review from a team as a code owner December 3, 2024 20:58
@mobiletest-ci-bot
Copy link

Warnings
⚠️ Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review. Consider using epic branches for work that would affect main.
Messages
📖 Project coverage: 32.83%
📖 Edited 4 files
📖 Created 0 files

Client.app: Coverage: 31.71

File Coverage
CreditCardBottomSheetViewModel.swift 74.5%

Generated by 🚫 Danger Swift against 5e95630

@lmarceau lmarceau changed the title Refactor FXIOS-9855 #21636 Flake tests Refactor FXIOS-9855 #21636 Flaky tests Dec 3, 2024
@lmarceau lmarceau merged commit 9e7027a into main Dec 3, 2024
10 checks passed
@lmarceau lmarceau deleted the lm/FXIOS-9855-#21636-flaky-cc-test branch December 3, 2024 22:01
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