From 92e6bd01a8623a61e37217155508856eb2be3316 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 12 Jul 2018 10:25:49 -0400 Subject: Add namespaces to in memory state Signed-off-by: Matthew Heon --- libpod/state_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libpod/state_test.go') diff --git a/libpod/state_test.go b/libpod/state_test.go index e5c5a1de0..8a678ba82 100644 --- a/libpod/state_test.go +++ b/libpod/state_test.go @@ -634,6 +634,15 @@ func TestContainerInUseInvalidContainer(t *testing.T) { }) } +func TestContainerInUseCtrNotInState(t *testing.T) { + runForAllStates(t, func(t *testing.T, state State, lockPath string) { + testCtr, err := getTestCtr1(lockPath) + assert.NoError(t, err) + _, err := state.ContainerInUse(testCtr) + assert.Error(t, err) + }) +} + func TestContainerInUseOneContainer(t *testing.T) { runForAllStates(t, func(t *testing.T, state State, lockPath string) { testCtr1, err := getTestCtr1(lockPath) -- cgit v1.2.3-54-g00ecf