mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Correct TestUpdatePod comment
Signed-off-by: mYmNeo <thomassong2012@gmail.com>
This commit is contained in:
		@@ -128,7 +128,6 @@ func drainWorkers(podWorkers *podWorkers, numPods int) {
 | 
				
			|||||||
func TestUpdatePod(t *testing.T) {
 | 
					func TestUpdatePod(t *testing.T) {
 | 
				
			||||||
	podWorkers, processed := createPodWorkers()
 | 
						podWorkers, processed := createPodWorkers()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check whether all pod updates will be processed.
 | 
					 | 
				
			||||||
	numPods := 20
 | 
						numPods := 20
 | 
				
			||||||
	for i := 0; i < numPods; i++ {
 | 
						for i := 0; i < numPods; i++ {
 | 
				
			||||||
		for j := i; j < numPods; j++ {
 | 
							for j := i; j < numPods; j++ {
 | 
				
			||||||
@@ -151,6 +150,7 @@ func TestUpdatePod(t *testing.T) {
 | 
				
			|||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// PodWorker guarantees the first and the last event will be processed
 | 
				
			||||||
		first := 0
 | 
							first := 0
 | 
				
			||||||
		last := len(processed[uid]) - 1
 | 
							last := len(processed[uid]) - 1
 | 
				
			||||||
		if processed[uid][first].name != string(0) {
 | 
							if processed[uid][first].name != string(0) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user