TestCreateInvokeAdmissionControl: remove unnecessary goroutine in sequential processing

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>

Kubernetes-commit: 06547556390a3cc86865c0c3fb579b0ca53a9b1b
This commit is contained in:
Gaurav Singh 2020-07-10 19:19:17 -04:00 committed by Kubernetes Publisher
parent 8ab69b327a
commit c9bcb3fdcc
1 changed files with 1 additions and 7 deletions

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)
}