From d9483062555ec7021da786c3af5dc9eedaf8f8b3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 12 Sep 2019 23:47:49 +0200 Subject: [PATCH] integration: remove unused constants and fields (unused) Signed-off-by: Sebastiaan van Stijn --- integration/container/create_test.go | 1 - integration/image/remove_unix_test.go | 4 ++-- integration/plugin/graphdriver/main_test.go | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/integration/container/create_test.go b/integration/container/create_test.go index 7be1cb6eac..769e673b9a 100644 --- a/integration/container/create_test.go +++ b/integration/container/create_test.go @@ -385,7 +385,6 @@ func TestCreateWithCustomReadonlyPaths(t *testing.T) { ctx := context.Background() testCases := []struct { - doc string readonlyPaths []string expected []string }{ diff --git a/integration/image/remove_unix_test.go b/integration/image/remove_unix_test.go index 4dbd2eab94..aad281bc6e 100644 --- a/integration/image/remove_unix_test.go +++ b/integration/image/remove_unix_test.go @@ -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)) } diff --git a/integration/plugin/graphdriver/main_test.go b/integration/plugin/graphdriver/main_test.go index 21dd9beba0..68fa02c81e 100644 --- a/integration/plugin/graphdriver/main_test.go +++ b/integration/plugin/graphdriver/main_test.go @@ -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()