From 12e9f7f82c3fca855cb4997dec50d74290fa2b65 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 17 Mar 2021 10:36:34 +0000 Subject: [PATCH] runtime: Add missing test mock function Added a missing `vcmock.Sandbox.GetHypervisorPid()` function. Signed-off-by: James O. D. Hunt --- src/runtime/virtcontainers/pkg/vcmock/sandbox.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime/virtcontainers/pkg/vcmock/sandbox.go b/src/runtime/virtcontainers/pkg/vcmock/sandbox.go index 727fed7af8..95ae2afe44 100644 --- a/src/runtime/virtcontainers/pkg/vcmock/sandbox.go +++ b/src/runtime/virtcontainers/pkg/vcmock/sandbox.go @@ -254,3 +254,7 @@ func (s *Sandbox) GetAgentURL() (string, error) { } return "", nil } + +func (s *Sandbox) GetHypervisorPid() (int, error) { + return 0, nil +}