mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-02 15:45:09 +00:00
fix static-check for staging/src/k8s.io/client-go/
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com> Kubernetes-commit: 6022b69dfd1c6e9454d4aa79012803c749706f6d
This commit is contained in:
committed by
Kubernetes Publisher
parent
59fda2e669
commit
f295032991
@@ -100,7 +100,7 @@ func TestCloseAllRace(t *testing.T) {
|
||||
dialer.CloseAll()
|
||||
|
||||
// Expect all connections to close within 5 seconds
|
||||
for start := time.Now(); time.Now().Sub(start) < 5*time.Second; time.Sleep(10 * time.Millisecond) {
|
||||
for start := time.Now(); time.Since(start) < 5*time.Second; time.Sleep(10 * time.Millisecond) {
|
||||
// Ensure all connections were closed
|
||||
if c := atomic.LoadInt64(&conns); c == 0 {
|
||||
break
|
||||
|
Reference in New Issue
Block a user