Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix TestClientOnResponseError parallel tests (#710)
In case of using `t.Parallel()` inside a for loop, the loop variables must be copied, otherwise only the last test will be executed. ```go for _, test := range tests { t.Run(test.name, func(t *testing.T) { t.Parallel() ``` changed to ```go for _, test := range tests { test := test t.Run(test.name, func(t *testing.T) { t.Parallel() ``` also the AuthServer must be created within the test, otherwise some tests fail. `t.Log(test.Name)` can be used to verify the issue: ```go for _, test := range tests { t.Run(test.name, func(t *testing.T) { t.Parallel() t.Log("Test name:", test.name) ```
- Loading branch information