From 067c44d0b647ac166284726a4f26892f3dba1b9d Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Thu, 16 Sep 2021 19:42:02 +0800 Subject: [PATCH] runtime: fix UT build failure storeContainer has been removed. Signed-off-by: Peng Tao --- src/runtime/virtcontainers/container_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/runtime/virtcontainers/container_test.go b/src/runtime/virtcontainers/container_test.go index 6824694d0..0c70b6b37 100644 --- a/src/runtime/virtcontainers/container_test.go +++ b/src/runtime/virtcontainers/container_test.go @@ -689,18 +689,3 @@ func TestConfigValid(t *testing.T) { result = config.valid() assert.True(result) } - -func TestStoreContainer(t *testing.T) { - hConfig := newHypervisorConfig(nil, nil) - sandbox, err := testCreateSandbox(t, testSandboxID, MockHypervisor, hConfig, NetworkConfig{}, nil, nil) - assert.NoError(t, err) - defer cleanUp() - - container := &Container{ - sandbox: sandbox, - } - - err = container.storeContainer() - assert.Nil(t, err, "store container should succeed") - -}