mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
testing: setting env var incompatible with parallel tests (#14405)
Neither the `os.Setenv` nor `t.Setenv` helper are safe to use in parallel tests because environment variables are process-global. The stdlib panics if you try to do this. Remove the `ci.Parallel()` call from all tests where we're setting environment variables.
This commit is contained in:
@@ -117,7 +117,7 @@ func TestRequestTime(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDefaultConfig_env(t *testing.T) {
|
||||
testutil.Parallel(t)
|
||||
|
||||
testURL := "http://1.2.3.4:5678"
|
||||
auth := []string{"nomaduser", "12345"}
|
||||
region := "test"
|
||||
|
||||
Reference in New Issue
Block a user