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()