1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

integration: remove unused constants and fields (unused)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-09-12 23:47:49 +02:00
parent ad95c6315d
commit d948306255
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
3 changed files with 2 additions and 5 deletions

View file

@ -385,7 +385,6 @@ func TestCreateWithCustomReadonlyPaths(t *testing.T) {
ctx := context.Background()
testCases := []struct {
doc string
readonlyPaths []string
expected []string
}{

View file

@ -88,6 +88,6 @@ func TestRemoveImageGarbageCollector(t *testing.T) {
// Run imageService.Cleanup() and make sure that layer was removed from disk
i.Cleanup()
dir, err = os.Stat(data["UpperDir"])
assert.ErrorContains(t, err, "no such file or directory")
_, err = os.Stat(data["UpperDir"])
assert.Assert(t, os.IsNotExist(err))
}

View file

@ -17,8 +17,6 @@ func init() {
reexec.Init() // This is required for external graphdriver tests
}
const dockerdBinary = "dockerd"
func TestMain(m *testing.M) {
var err error
testEnv, err = environment.New()