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

Clean asset definitions after each test #17853

Conversation

cedric-anne
Copy link
Member

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.

Description

Once loaded, the asset definitions are stored in the definitions_data property of the AssetDefinitionManager singleton instance. This property acts as a cache and interfers with the other tests. Unsetting the singleton instance shoudl fix this behaviour.

Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

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

LGTM

@cedric-anne cedric-anne merged commit cbe52b2 into glpi-project:main Sep 16, 2024
7 checks passed
@cedric-anne cedric-anne deleted the 11.0/clean-asset-definitions-after-tests branch November 6, 2024 16:47
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.

4 participants