Skip to content

Commit 5c2426a

Browse files
committed
cleanup: import from k8s.io/utils/clock/testing instead
Signed-off-by: haoyun <[email protected]>
1 parent 6484fab commit 5c2426a

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

pkg/cri/server/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"github.com/pkg/errors"
3636
"github.com/sirupsen/logrus"
3737
"golang.org/x/net/context"
38-
"k8s.io/apimachinery/pkg/util/clock"
38+
"k8s.io/utils/clock"
3939
)
4040

4141
const (

pkg/cri/server/events_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import (
2323
eventtypes "github.com/containerd/containerd/api/events"
2424
"github.com/containerd/typeurl"
2525
"github.com/stretchr/testify/assert"
26-
"k8s.io/apimachinery/pkg/util/clock"
26+
testingclock "k8s.io/utils/clock/testing"
2727
)
2828

2929
// TestBackOff tests the logic of backOff struct.
3030
func TestBackOff(t *testing.T) {
3131
testStartTime := time.Now()
32-
testClock := clock.NewFakeClock(testStartTime)
32+
testClock := testingclock.NewFakeClock(testStartTime)
3333
inputQueues := map[string]*backOffQueue{
3434
"container1": {
3535
events: []interface{}{

vendor/k8s.io/apimachinery/pkg/util/wait/wait.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/exec.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/rest/request.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/util/flowcontrol/backoff.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/util/workqueue/delaying_queue.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/util/workqueue/metrics.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/util/workqueue/queue.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ k8s.io/apimachinery/pkg/runtime/serializer/streaming
611611
k8s.io/apimachinery/pkg/runtime/serializer/versioning
612612
k8s.io/apimachinery/pkg/selection
613613
k8s.io/apimachinery/pkg/types
614-
k8s.io/apimachinery/pkg/util/clock
614+
k8s.io/utils/clock
615615
k8s.io/apimachinery/pkg/util/errors
616616
k8s.io/apimachinery/pkg/util/framer
617617
k8s.io/apimachinery/pkg/util/httpstream

0 commit comments

Comments
 (0)