Skip to content

fix: goroutine WaitGroup race in test#289

Merged
gongna-au merged 1 commit intoXiaoMi:mainfrom
l2dy:fix/staticcheck-sa2000
Sep 8, 2025
Merged

fix: goroutine WaitGroup race in test#289
gongna-au merged 1 commit intoXiaoMi:mainfrom
l2dy:fix/staticcheck-sa2000

Conversation

@l2dy
Copy link
Contributor

@l2dy l2dy commented Aug 22, 2025

It's unlikely to get a race condition given the time.Sleep(time.Millisecond * 50) call before g.Wait(), but nonetheless this should be fixed.

@gongna-au
Copy link
Collaborator

你好 @l2dy👋

非常感谢你提交这个 MR 来修复该问题!👍

我仔细看了一下,修改完全正确,这避免了竞争。这对社区非常有帮助!

再次感谢你的细心和贡献!欢迎继续为社区做贡献!

@gongna-au gongna-au merged commit 4a85095 into XiaoMi:main Sep 8, 2025
1 of 4 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