RequiresIsolation will ensure that tests that must be run in an isolated environment are being run with the explicit ENABLE_ISOLATED_TESTS env var. If the env var has not been set, the test will be skipped
(t testing.TB)
| 57 | // environment are being run with the explicit ENABLE_ISOLATED_TESTS env var. |
| 58 | // If the env var has not been set, the test will be skipped |
| 59 | func RequiresIsolation(t testing.TB) { |
| 60 | if !isolatedTestsEnabled { |
| 61 | t.Skip("skipping test that requires isolation") |
| 62 | } |
| 63 | } |