Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AssertStartedPods (0.12 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    		f.T.Errorf("AssertCallCounts: expected %s to be called %d times, but was actually called %d times.", funcName, expectedCount, actualCount)
    		return false
    	}
    	return true
    }
    
    func (f *FakeRuntime) AssertStartedPods(pods []string) bool {
    	f.Lock()
    	defer f.Unlock()
    	return f.assertList(pods, f.StartedPods)
    }
    
    func (f *FakeRuntime) AssertKilledPods(pods []string) bool {
    	f.Lock()
    	defer f.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    			Containers: []v1.Container{
    				{Name: "bar"},
    			},
    		}),
    	}
    	kubelet.podManager.SetPods(pods)
    	kubelet.HandlePodSyncs(pods)
    	fakeRuntime.AssertStartedPods([]string{string(pods[0].UID)})
    }
    
    func TestHandlePodCleanupsPerQOS(t *testing.T) {
    	ctx := context.Background()
    	testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
Back to top