Skip to content

Instantly share code, notes, and snippets.

@awalterschulze
Created August 25, 2015 08:12
Show Gist options
  • Save awalterschulze/a40ab7e715a5a6cc57da to your computer and use it in GitHub Desktop.
Save awalterschulze/a40ab7e715a5a6cc57da to your computer and use it in GitHub Desktop.
Finding Concurrency Bugs
function repeattest {
go test -c
while [ $? -eq 0 ]; do
GOMAXPROCS=$[ 1 + $[ RANDOM % 100 ]] ./`ls *.test` -test.v $1 2>&1
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment