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 CheckConnection race condition #577

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

omerzi
Copy link
Member

@omerzi omerzi commented Nov 16, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

  • Replacing errgroup.Group with sync.WaitGroup as the routine does not return an error.
  • IsConnected() exhibited a race condition: when reading the connected value, it is possible that IsUrlAccessible() hadn't finished yet, resulting in incorrect values.

@omerzi omerzi added bug Something isn't working safe to test Approve running integration tests on a pull request labels Nov 16, 2023
@omerzi omerzi requested a review from attiasas November 16, 2023 07:45
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 16, 2023
@omerzi omerzi added the safe to test Approve running integration tests on a pull request label Nov 16, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 16, 2023
@omerzi omerzi added the safe to test Approve running integration tests on a pull request label Nov 16, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 16, 2023
utils/utils.go Outdated Show resolved Hide resolved
@omerzi omerzi added the safe to test Approve running integration tests on a pull request label Nov 16, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 16, 2023
Copy link
Contributor

👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.


@omerzi omerzi merged commit 36d9163 into jfrog:dev Nov 16, 2023
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants