mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	kube-apiserver/leaderelection/tests: fix test case PingTime should be ahead of RenewTime
This commit is contained in:
		@@ -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},
 | 
			
		||||
					},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user