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 UI Plugin failing tests #583

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

adambarreiro
Copy link
Collaborator

@adambarreiro adambarreiro commented Jun 26, 2023

This PR complements #575 as it fixes a failing unit test.

The reason of the failure is that the unit test was referencing a variable defined in a regular test, which is not visible when using the unit tag.

I have refactored the code so the variable doesn't need to be global anymore.

I've also added the unit step to the GitHub Action, to run the unit tests in PRs with make testunit, so we minimize the chances of this happening again.

Signed-off-by: abarreiro <[email protected]>
Signed-off-by: abarreiro <[email protected]>
@adambarreiro adambarreiro self-assigned this Jun 26, 2023
@adambarreiro adambarreiro marked this pull request as ready for review June 26, 2023 08:29
Signed-off-by: abarreiro <[email protected]>
@adambarreiro adambarreiro merged commit be0efa9 into vmware:main Jun 29, 2023
@adambarreiro adambarreiro deleted the fix-ui-plugin-tests branch June 29, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants