Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Fix unit test typo
Browse files Browse the repository at this point in the history
s/Emtpy/Empty/g

Fixes: #1145

Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Samuel Ortiz committed Jan 17, 2019
1 parent 9b9ff2b commit a07b4cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtcontainers/sandbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ 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")
}
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")
Expand All @@ -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)
Expand Down

0 comments on commit a07b4cd

Please sign in to comment.