fix issue #34#35
Open
sith-lord-of-git wants to merge 1 commit into
Open
Conversation
aaronc
reviewed
Aug 26, 2024
aaronc
left a comment
Member
There was a problem hiding this comment.
Thanks for your contribution @pauleibye ! Have you run tests with the -race flag on this branch? When I checkout this branch locally and run go test ./... -race, I'm still getting race errors.
Author
…e places to prevent races
e59003a to
2adb522
Compare
Author
|
reverted simple_test.go to main, which sets the non parallel flag on the non pointer test since it relies on overwriting a shared variable in a specific order |
Member
|
I'm still getting race errors locally. I'm going to look at this a bit and see if I can figure out what's going on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add stepDefs mutex and lock in appropriate places to prevent races.
Enables a test to be switched back to use the default parallel = true flag, the example api and hooks tests still fail with parallelization, but after looking it seems that's an issue with how they were written (using package global variables) rather than a bug with concurrent execution.
#34