Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:19
Show Gist options
  • Save rightfold/4fd2c5e4d56946839948 to your computer and use it in GitHub Desktop.
Save rightfold/4fd2c5e4d56946839948 to your computer and use it in GitHub Desktop.
func TestSaveUserConcurrently(t *testing.T) {
start := make(chan struct{})
for i := 0; i < 100; i++ {
go func() {
<-start
TestSaveNewUser(t)
}()
}
close(start)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment