File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
28
28
// clock is used to set status condition timestamps.
29
29
// This variable makes it easier to test conditions.
30
- var clock kubeclock.Clock = & kubeclock.RealClock {}
30
+ var clock kubeclock.PassiveClock = & kubeclock.RealClock {}
31
31
32
32
// ConditionType is the type of the condition and is typically a CamelCased
33
33
// word or short phrase.
Original file line number Diff line number Diff line change @@ -41,16 +41,14 @@ func init() {
41
41
42
42
func initConditions (init ... Condition ) Conditions {
43
43
// Use the same initial time for all initial conditions
44
- clock = kubeclock .NewFakeClock (initTime )
44
+ clock = kubeclock .NewFakePassiveClock (initTime )
45
45
conditions := Conditions {}
46
46
for _ , c := range init {
47
47
conditions .SetCondition (c )
48
48
}
49
49
50
50
// Use an incrementing clock for the rest of the test
51
- // This is deprecated but should be fine to use for now until we have a better solution
52
- // nolint
53
- clock = & kubeclock.IntervalClock {
51
+ clock = & kubeclock.SimpleIntervalClock {
54
52
Time : initTime ,
55
53
Duration : clockInterval ,
56
54
}
You can’t perform that action at this time.
0 commit comments