mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
kube-apiserver/leaderelection/tests: fix test case PingTime should be ahead of RenewTime
This commit is contained in:
parent
b8045f98a4
commit
f173f0c58c
@ -174,7 +174,7 @@ func TestReconcileElectionStep(t *testing.T) {
|
||||
LeaseName: "component-A",
|
||||
EmulationVersion: "1.20.0",
|
||||
BinaryVersion: "1.20.0",
|
||||
PingTime: ptr.To(metav1.NewMicroTime(fakeClock.Now())),
|
||||
PingTime: ptr.To(metav1.NewMicroTime(fakeClock.Now().Add(-1 * time.Millisecond))),
|
||||
RenewTime: ptr.To(metav1.NewMicroTime(fakeClock.Now())),
|
||||
PreferredStrategies: []v1.CoordinatedLeaseStrategy{v1.OldestEmulationVersion},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user