File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
components/public-api-server/pkg/oidc Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,17 @@ func TestGetClientConfigFromStartRequest(t *testing.T) {
102
102
}
103
103
104
104
for _ , tc := range testCases {
105
- t .Run (tc .Location , func (t * testing.T ) {
105
+ t .Run (tc .Location , func (te * testing.T ) {
106
+ te .Parallel ()
106
107
request := httptest .NewRequest (http .MethodGet , tc .Location , nil )
107
108
config , err := service .GetClientConfigFromStartRequest (request )
108
109
if tc .ExpectedError == true {
109
- require .Error (t , err )
110
+ require .Error (te , err )
110
111
}
111
112
if tc .ExpectedError != true {
112
- require .NoError (t , err )
113
- require .NotNil (t , config )
114
- require .Equal (t , tc .ExpectedId , config .ID )
113
+ require .NoError (te , err )
114
+ require .NotNil (te , config )
115
+ require .Equal (te , tc .ExpectedId , config .ID )
115
116
}
116
117
})
117
118
}
You can’t perform that action at this time.
0 commit comments