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/SFINT-3352: Ensure internal state is updated first. #86

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

louis-bompart
Copy link
Collaborator

What was going on.

image

Fix

Ensure the inner state is updated first, so activated is true the first time after the first setActivated(true) and therefore the second is no-opped.

This is 'suffisant' as a fix, however, as the Panel also has a state, it's supposed to do the same checks and to update its inner states ASAP in the execution, or at the very least before doing any 'outside' communications.

This will be done in a future PR.

How was it tested.

SAN Check in SFINT
UT for new code
UT for this peculiar scenarii.

Both UT suites have been tested with and without the changeset, they do fail properly when the fix is not there ✔️

Copy link
Collaborator

@lbergeron lbergeron left a comment

Choose a reason for hiding this comment

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

Looks good to me!

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.

None yet

3 participants