mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
runtime: fix UT build failure
storeContainer has been removed. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
9a311a2b58
commit
067c44d0b6
@ -689,18 +689,3 @@ func TestConfigValid(t *testing.T) {
|
|||||||
result = config.valid()
|
result = config.valid()
|
||||||
assert.True(result)
|
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")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user