mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 10:37:10 +00:00
virtcontainers: Fix unit test typo
s/Emtpy/Empty/g Fixes: #1145 Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
9b9ff2b7e6
commit
a07b4cd57f
@ -79,7 +79,7 @@ func testCreateSandbox(t *testing.T, id string,
|
|||||||
return sandbox, nil
|
return sandbox, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateEmtpySandbox(t *testing.T) {
|
func TestCreateEmptySandbox(t *testing.T) {
|
||||||
_, err := testCreateSandbox(t, testSandboxID, MockHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
_, err := testCreateSandbox(t, testSandboxID, MockHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("VirtContainers should not allow empty sandboxes")
|
t.Fatalf("VirtContainers should not allow empty sandboxes")
|
||||||
@ -87,7 +87,7 @@ func TestCreateEmtpySandbox(t *testing.T) {
|
|||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateEmtpyHypervisorSandbox(t *testing.T) {
|
func TestCreateEmptyHypervisorSandbox(t *testing.T) {
|
||||||
_, err := testCreateSandbox(t, testSandboxID, QemuHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
_, err := testCreateSandbox(t, testSandboxID, QemuHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("VirtContainers should not allow sandboxes with empty hypervisors")
|
t.Fatalf("VirtContainers should not allow sandboxes with empty hypervisors")
|
||||||
@ -105,7 +105,7 @@ func TestCreateMockSandbox(t *testing.T) {
|
|||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateSandboxEmtpyID(t *testing.T) {
|
func TestCreateSandboxEmptyID(t *testing.T) {
|
||||||
hConfig := newHypervisorConfig(nil, nil)
|
hConfig := newHypervisorConfig(nil, nil)
|
||||||
|
|
||||||
p, err := testCreateSandbox(t, "", MockHypervisor, hConfig, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
p, err := testCreateSandbox(t, "", MockHypervisor, hConfig, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user