-
-
Save rightfold/4fd2c5e4d56946839948 to your computer and use it in GitHub Desktop.
This file contains 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
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