Skip to content

Conversation

@muir
Copy link
Collaborator

@muir muir commented Apr 8, 2025

No description provided.

@muir muir requested review from Copilot, dncohen and mitchwadair April 8, 2025 22:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

time.Sleep(sleep)
done.Done()
assert.GreaterOrEqual(t, atomic.AddInt32(&running, -1), int32(0))
done.Done()
Copy link

Copilot AI Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reordering done.Done() to after the atomic decrement ensures the running counter is updated before signaling completion, which should prevent the race condition. Please verify that this change aligns with the intended test synchronization.

Copilot uses AI. Check for mistakes.
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@muir muir merged commit 9fa5a88 into main Apr 9, 2025
29 checks passed
@muir muir deleted the testRace branch April 9, 2025 17:13
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.

4 participants