mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Note dishonesty of IntervalClock
This commit is contained in:
parent
bfeabe894f
commit
8afd6780b4
@ -66,7 +66,12 @@ func NewFakeClock(t time.Time) *testclocks.FakeClock {
|
|||||||
// IntervalClock implements Clock, but each invocation of Now steps
|
// IntervalClock implements Clock, but each invocation of Now steps
|
||||||
// the clock forward the specified duration.
|
// the clock forward the specified duration.
|
||||||
//
|
//
|
||||||
// Deprecated: Use k8s.io/utils/clock/testing.IntervalClock instead.
|
// WARNING: most of the Clock methods just `panic`;
|
||||||
|
// only PassiveClock is honestly implemented.
|
||||||
|
// The alternative, SimpleIntervalClock, has only the
|
||||||
|
// PassiveClock methods.
|
||||||
|
//
|
||||||
|
// Deprecated: Use k8s.io/utils/clock/testing.SimpleIntervalClock instead.
|
||||||
type IntervalClock = testclocks.IntervalClock
|
type IntervalClock = testclocks.IntervalClock
|
||||||
|
|
||||||
// Timer allows for injecting fake or real timers into code that
|
// Timer allows for injecting fake or real timers into code that
|
||||||
|
Loading…
Reference in New Issue
Block a user