You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: use atomics in TestSystemMetricsReport to avoid race condition (#233)
## What does this PR do?
replace bool with atomic.Bool to avoid race condition with multiple
goroutines accessing the variables
## Why is it important?
tests with race detector will fail
## Checklist
<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to
have the PR approved
List here all the items you have verified BEFORE sending this PR. Please
DO NOT remove any item, striking through those that do not apply. (Just
in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->
- [ ] My code follows the style guidelines of this project
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added an entry in `CHANGELOG.md`
## Author's Checklist
<!-- Recommended
Add a checklist of things that are required to be reviewed in order to
have the PR approved
-->
- [ ]
## Related issues
Discovered in
#232
0 commit comments