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: Prevent race condition in paralled testing #507

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

wonchulee
Copy link
Collaborator

  • While running tests in parallel, multiple goroutines can access a map that is not thread safe and write and read data from it.
  • This can cause panic during the testing process and prevent results from being collected properly.
  • It replace plain Map to sync.Map to prevent race conditions

@wonchulee wonchulee requested a review from youngmn as a code owner December 26, 2024 05:56
@wonchulee wonchulee merged commit ceb12b5 into NaverCloudPlatform:main Dec 26, 2024
2 checks passed
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.

2 participants