diff options
Diffstat (limited to 'libpod/state_test.go')
-rw-r--r-- | libpod/state_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libpod/state_test.go b/libpod/state_test.go index f18393e23..b98674134 100644 --- a/libpod/state_test.go +++ b/libpod/state_test.go @@ -1119,7 +1119,6 @@ func TestAddPodDuplicateNameFails(t *testing.T) { err = state.AddPod(testPod2) assert.Error(t, err) - allPods, err := state.AllPods() assert.NoError(t, err) assert.Equal(t, 1, len(allPods)) @@ -1160,7 +1159,6 @@ func TestAddPodCtrIDConflictFails(t *testing.T) { err = state.AddPod(testPod) assert.Error(t, err) - allPods, err := state.AllPods() assert.NoError(t, err) assert.Equal(t, 0, len(allPods)) @@ -1181,7 +1179,6 @@ func TestAddPodCtrNameConflictFails(t *testing.T) { err = state.AddPod(testPod) assert.Error(t, err) - allPods, err := state.AllPods() assert.NoError(t, err) assert.Equal(t, 0, len(allPods)) @@ -1270,7 +1267,6 @@ func TestRemovePodNotEmptyFails(t *testing.T) { err = state.RemovePod(testPod) assert.Error(t, err) - allPods, err := state.AllPods() assert.NoError(t, err) assert.Equal(t, 1, len(allPods)) @@ -1305,7 +1301,7 @@ func TestRemovePodAfterEmptySucceeds(t *testing.T) { } func TestAllPodsEmptyOnEmptyState(t *testing.T) { - runForAllStates(t , func(t *testing.T, state State, lockPath string) { + runForAllStates(t, func(t *testing.T, state State, lockPath string) { allPods, err := state.AllPods() assert.NoError(t, err) assert.Equal(t, 0, len(allPods)) |