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:
HaoJie Liu
2022-07-07 18:58:25 +08:00
committed by Kubernetes Publisher
parent 59fda2e669
commit f295032991
2 changed files with 6 additions and 6 deletions

View File

@@ -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