Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StopPodSandboxReturns (0.22 sec)

  1. cmd/kubeadm/app/util/runtime/runtime_fake_test.go

    		err error
    	}{res, err}
    }
    
    func (fake *fakeImpl) StopPodSandbox(context.Context, cri.RuntimeService, string) error {
    	fakeReturns := fake.stopPodSandboxReturns
    	return fakeReturns.res
    }
    
    func (fake *fakeImpl) StopPodSandboxReturns(res error) {
    	fake.stopPodSandboxReturns = struct {
    		res error
    	}{res}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/runtime/runtime_test.go

    			},
    			shouldError: true,
    		},
    		{
    			name:       "invalid: stop pod sandbox fails",
    			containers: []string{"1"},
    			prepare: func(mock *fakeImpl) {
    				mock.StopPodSandboxReturns(errTest)
    			},
    			shouldError: true,
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			containerRuntime := NewContainerRuntime("")
    			mock := &fakeImpl{}
    			if tc.prepare != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top