stop stops that pod.
(remove bool)
| 782 | |
| 783 | // stop stops that pod. |
| 784 | func (pCtx *podTCtx) stop(remove bool) { |
| 785 | t := pCtx.t |
| 786 | |
| 787 | t.Logf("Stopping pod %s", pCtx.id) |
| 788 | require.NoError(t, pCtx.rSvc.StopPodSandbox(pCtx.id)) |
| 789 | if remove { |
| 790 | t.Logf("Removing pod %s", pCtx.id) |
| 791 | require.NoError(t, pCtx.rSvc.RemovePodSandbox(pCtx.id)) |
| 792 | } |
| 793 | } |
| 794 | |
| 795 | // criRuntimeInfo dumps CRI config. |
| 796 | func criRuntimeInfo(t *testing.T, svc *remote.RuntimeService) map[string]any { |
no test coverage detected