Merge pull request #92975 from gaurav1086/TestCreateInvokeAdmissionControl_remove_unnecessary_goroutine

TestCreateInvokeAdmissionControl: remove unnecessary goroutine in sequential processing
This commit is contained in:
Kubernetes Prow Robot 2020-08-27 19:08:14 -07:00 committed by GitHub
commit dfb809c3c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4178,14 +4178,8 @@ func TestCreateInvokeAdmissionControl(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
wg := sync.WaitGroup{}
wg.Add(1)
var response *http.Response
go func() {
response, err = client.Do(request)
wg.Done()
}()
wg.Wait()
response, err = client.Do(request)
if err != nil {
t.Errorf("unexpected error: %v", err)
}