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 busted tests due to a bug in PeriodicValueConverter from Flexbox changes #153

Merged
merged 1 commit into from
May 29, 2023

Conversation

lee-m
Copy link
Contributor

@lee-m lee-m commented May 29, 2023

The flexbox PR changed PeriodicValueConverter to work with 2 values instead of only 4, but what was missed was some places were using just .Periodic() without any labels specified which triggered the debug assertion on the label count being 2 or 4.

Because all the value converter stuff is static, the exception raised during the static constructor crashed the XUnit test runner process and hid the fact these tests were failing because they were never actually being run.

This fixes this by treating the case of no labels the same as 4 for backwards compatibility. Confirmed that all tests are now passing with none marked as being skipped.

Some places was using just .Periodic() without any labels specified which triggered the debug assertion that the label count was 2 or 4. Because all the value converter stuff is static, the exception raised during the static constructor crashed the XUnit test runner process and masked the fact these tests were failing because they was never actually being run.

Fixed by treating the case of no labels the same as 4 for backwards compatibility.
@TylerBrinks TylerBrinks merged commit c6cdc57 into TylerBrinks:master May 29, 2023
@lee-m lee-m deleted the busted-tests branch May 29, 2023 14:59
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.

2 participants