Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Race condition discovered in pqueue_test.go in recent GHA run.

Describe the change

Fix ordering of channel to release next step of the test to run after queue is freed, and avoid nil pointer deref.

How to verify it

Changelog text

  • Fix: Race condition in the pqueue tests.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit 4824016 into regclient:main Oct 27, 2024
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-pqueue-race branch October 27, 2024 20:38
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