runtime: fix UT build failure

storeContainer has been removed.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2021-09-16 19:42:02 +08:00
parent 9a311a2b58
commit 067c44d0b6

View File

@ -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")
}