Skip to content

Conversation

@kruskall
Copy link
Member

What does this PR do?

enable race detector in tests

Why is it important?

detect race conditions

Checklist

  • 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

  • [ ]

Related issues

@kruskall kruskall requested a review from a team as a code owner June 13, 2025 12:54
@kruskall kruskall requested review from VihasMakwana and belimawr and removed request for a team June 13, 2025 12:54
@kruskall kruskall marked this pull request as draft June 13, 2025 18:42
kruskall added a commit that referenced this pull request Jun 16, 2025
…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
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.

1 participant