1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

Do not fail in TearDown if container not found when removing

If the container is not found when removing, it means it's already not
there anymore, so it's safe to ignore. This should reduce a bit some
`TearDown` flakyness..

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester
2017-01-02 19:21:52 +01:00
parent 8a3ede3d5d
commit 636d6ee57c
4 changed files with 14 additions and 6 deletions

View File

@ -1291,7 +1291,7 @@ func (s *DockerSuite) TestPutContainerArchiveErrSymlinkInVolumeToReadOnlyRootfs(
readOnly: true,
volumes: defaultVolumes(testVol), // Our bind mount is at /vol2
})
defer deleteContainer(cID)
defer deleteContainer(false, cID)
// Attempt to extract to a symlink in the volume which points to a
// directory outside the volume. This should cause an error because the