fake remote runtime should call correct method on remove pod sandbox

This commit is contained in:
Keerthan Reddy,Mala 2020-04-13 13:39:43 -07:00
parent 70e2559aca
commit 9b9cf33771

View File

@ -112,7 +112,7 @@ func (f *RemoteRuntime) StopPodSandbox(ctx context.Context, req *kubeapi.StopPod
// This call is idempotent, and must not return an error if the sandbox has
// already been removed.
func (f *RemoteRuntime) RemovePodSandbox(ctx context.Context, req *kubeapi.RemovePodSandboxRequest) (*kubeapi.RemovePodSandboxResponse, error) {
err := f.RuntimeService.StopPodSandbox(req.PodSandboxId)
err := f.RuntimeService.RemovePodSandbox(req.PodSandboxId)
if err != nil {
return nil, err
}