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:
Samuel Ortiz 2019-01-17 15:55:56 +01:00
parent 9b9ff2b7e6
commit a07b4cd57f

View File

@ -79,7 +79,7 @@ func testCreateSandbox(t *testing.T, id string,
return sandbox, nil
}
func TestCreateEmtpySandbox(t *testing.T) {
func TestCreateEmptySandbox(t *testing.T) {
_, err := testCreateSandbox(t, testSandboxID, MockHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
if err == nil {
t.Fatalf("VirtContainers should not allow empty sandboxes")
@ -87,7 +87,7 @@ func TestCreateEmtpySandbox(t *testing.T) {
defer cleanUp()
}
func TestCreateEmtpyHypervisorSandbox(t *testing.T) {
func TestCreateEmptyHypervisorSandbox(t *testing.T) {
_, err := testCreateSandbox(t, testSandboxID, QemuHypervisor, HypervisorConfig{}, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)
if err == nil {
t.Fatalf("VirtContainers should not allow sandboxes with empty hypervisors")
@ -105,7 +105,7 @@ func TestCreateMockSandbox(t *testing.T) {
defer cleanUp()
}
func TestCreateSandboxEmtpyID(t *testing.T) {
func TestCreateSandboxEmptyID(t *testing.T) {
hConfig := newHypervisorConfig(nil, nil)
p, err := testCreateSandbox(t, "", MockHypervisor, hConfig, NoopAgentType, NoopNetworkModel, NetworkConfig{}, nil, nil)