Description

Never change global variables in tests. And try hard to prevent using global variables.

  1. With -test.count=2 the global variables are not reset, so values from the previous run will be reused.
  2. Expect test to run in parallel. Other tests might also use the global variables you’re changing.

Examples