diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-07-12 10:25:49 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-07-24 16:12:31 -0400 |
commit | 92e6bd01a8623a61e37217155508856eb2be3316 (patch) | |
tree | ba6e6e1203bb6d60fc98eb841bf8a9edd80170e2 /libpod/state_test.go | |
parent | 2705344634a875c49a4c9028d3a2f7e334b4db1f (diff) | |
download | podman-92e6bd01a8623a61e37217155508856eb2be3316.tar.gz podman-92e6bd01a8623a61e37217155508856eb2be3316.tar.bz2 podman-92e6bd01a8623a61e37217155508856eb2be3316.zip |
Add namespaces to in memory state
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/state_test.go')
-rw-r--r-- | libpod/state_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
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) |