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 TestKeyboardPress test panic #1517

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

inancgumus
Copy link
Member

@inancgumus inancgumus commented Nov 6, 2024

What?

Fix TestKeyboardPress test panic.

Why?

This only fixes the panic but not the underlying error with WaitForEvent. As we can also see in #1506, there is clearly an issue with WaitForEvent.

Note

This fix highlights the fact that we should use require instead of assert when an error should block the test from continuing.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Updates #1505

@inancgumus inancgumus self-assigned this Nov 6, 2024
@inancgumus inancgumus added bug Something isn't working tests labels Nov 6, 2024
@inancgumus inancgumus marked this pull request as ready for review November 6, 2024 18:59
@inancgumus inancgumus requested a review from ankur22 November 6, 2024 18:59
ankur22
ankur22 previously approved these changes Nov 7, 2024
@inancgumus inancgumus force-pushed the fix/sobek-ptr-any-slice-parsing branch from 104780f to 19b6407 Compare November 7, 2024 14:42
@inancgumus inancgumus requested a review from a team as a code owner November 7, 2024 14:42
@inancgumus inancgumus requested review from olegbespalov and joanlopez and removed request for a team November 7, 2024 14:42
Base automatically changed from fix/sobek-ptr-any-slice-parsing to main November 7, 2024 14:42
@inancgumus inancgumus dismissed ankur22’s stale review November 7, 2024 14:42

The base branch was changed.

This only fixes the panic, but not the underlying error with
WaitForEvent. There is clearly an issue with WaitForEvent as we can
also see in #1506.
@inancgumus inancgumus force-pushed the fix/test-keyboard-press-test-panic branch from dd098ed to 17a865f Compare November 7, 2024 14:42
@inancgumus inancgumus merged commit 151b982 into main Nov 7, 2024
5 checks passed
@inancgumus inancgumus deleted the fix/test-keyboard-press-test-panic branch November 7, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants