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

Fix unstable typing related tests in ChatChannelController_Tests #3520

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

laevandus
Copy link
Contributor

🎯 Goal

These tests were not updated to include the waiting part (PR:3502 made typing check asynchronous which now started triggering test failures)

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (docusaurus, tutorial, CMS)

🎁 Meme

Provide a funny gif or image that relates to your work on this pull request. (Optional)

@laevandus laevandus added 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK 🤖 CI/CD Any work related to CI/CD labels Dec 3, 2024
@laevandus laevandus requested a review from a team as a code owner December 3, 2024 07:56
Comment on lines +2990 to +2991
wait(for: [env.eventSender!.keystroke_completion_expectation], timeout: defaultTimeout)
env.eventSender!.keystroke_completion_expectation = XCTestExpectation()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Expectation can be waited only once, but this test wants to wait twice, so we set a new expectation.

Copy link

sonarcloud bot commented Dec 3, 2024

@laevandus laevandus merged commit 0402640 into develop Dec 3, 2024
15 checks passed
@laevandus laevandus deleted the ci/fix-unstable-typing-tests branch December 3, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 CI/CD Any work related to CI/CD 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant