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

Ignore no such container in testEnv.Clean

When moving the clean function there, this check was not ported and
generated some errors on the CI. `deleteContainer` now fail if any
error but the clean function won't if "no such container" (because of
some races -_-).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester
2017-03-03 15:44:22 +01:00
parent dc1b0e1b2c
commit 5dd89abdf1
5 changed files with 16 additions and 16 deletions

View File

@ -1261,7 +1261,7 @@ func (s *DockerSuite) TestPutContainerArchiveErrSymlinkInVolumeToReadOnlyRootfs(
readOnly: true,
volumes: defaultVolumes(testVol), // Our bind mount is at /vol2
})
defer deleteContainer(false, cID)
defer deleteContainer(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