mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #92975 from gaurav1086/TestCreateInvokeAdmissionControl_remove_unnecessary_goroutine
TestCreateInvokeAdmissionControl: remove unnecessary goroutine in sequential processing
This commit is contained in:
commit
dfb809c3c4
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user