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

Refactor stress tests and wait for the results #16

Merged
merged 1 commit into from
Dec 13, 2016
Merged

Conversation

prashantv
Copy link
Collaborator

This reduces a bunch of code duplication, ensures all tests wait for the goroutines to finish, and uses "var" to create the atomic since we're using the default value.

Previously, we were not waiting for the spawned goroutines to end.
Refactor the logic to use a common runStress that runs some function
from multiple goroutines.
@prashantv prashantv requested a review from billf December 13, 2016 19:11
@billf billf merged commit 14746df into master Dec 13, 2016
Copy link
Contributor

@akshayjshah akshayjshah left a comment

Choose a reason for hiding this comment

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

lgtm

}
}()
}

wg.Wait()
Copy link
Contributor

Choose a reason for hiding this comment

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

(facepalm)

@prashantv prashantv deleted the refactor_stress branch December 13, 2016 19:31
robbertvanginkel pushed a commit that referenced this pull request Mar 16, 2020
* Add md-to-doc to Makefile

* Change order of `make lint` to ensure doc.go header

* Regen doc.go
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.

None yet

3 participants