serving icon indicating copy to clipboard operation
serving copied to clipboard

Random int created for running e2e tests is not thread safe.

Open srinivashegde86 opened this issue 8 years ago • 0 comments

/area test-and-release /kind bug

We are creating a random int once per test case so that every case is unique and do not conflict. But, we are generating our own rand and that is not thread safe and fails when the e2e tests are run in parallel - https://github.com/golang/go/issues/3611

Potential options:

  1. Use a locking mechanism to get the random suffix
  2. Use a global rand instead of generating our own.

srinivashegde86 avatar Jul 25 '18 06:07 srinivashegde86