Migrate to k8s.io/utils/clock in client-go - part 1

Kubernetes-commit: 950f655bdd19c5af275846cf1940d767a5ec0115
This commit is contained in:
wojtekt
2021-09-15 10:58:56 +02:00
committed by Kubernetes Publisher
parent 0866d96687
commit 608b5216df
9 changed files with 16 additions and 17 deletions

View File

@@ -45,7 +45,6 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/serializer/streaming"
"k8s.io/apimachinery/pkg/util/clock"
"k8s.io/apimachinery/pkg/util/diff"
"k8s.io/apimachinery/pkg/util/httpstream"
"k8s.io/apimachinery/pkg/util/intstr"
@@ -2485,7 +2484,7 @@ func TestThrottledLogger(t *testing.T) {
defer func() {
globalThrottledLogger.clock = oldClock
}()
clock := clock.NewFakeClock(now)
clock := testingclock.NewFakeClock(now)
globalThrottledLogger.clock = clock
logMessages := 0