Skip to content

[RUN AS-IF-FOSS] Clear memoized values for `UsageData` tests

Alishan Ladhani requested to merge ali/clear-usage-ping-memoization into master

What does this MR do?

Clear all memoized values in UsageData tests. While implementing !43772 (comment 422958842), I noticed that when BatchCounter's batch size is reduced, tests start to fail because they are using memoized values.

By clearing memoization before all tests, we can ensure that this does not affect the tests.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Heinrich Lee Yu

Merge request reports