From 9353cd77fd241f926247fce75c62c7e720d4d97e Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Thu, 16 Sep 2021 12:26:37 +0200 Subject: [PATCH] runtime: Remove outdated TestStoreContainer Due to #2332 being merged after running tests for #2604, and the latter being merged now, a test for the now removed `storeContainer` was added. Remove it. Fixes: #2652 Signed-off-by: Jakob Naucke --- 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 6824694d06..0c70b6b37e 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") - -}