فهرست منبع

integration: remove unused constants and fields (unused)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 سال پیش
والد
کامیت
d948306255
3فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 0 1
      integration/container/create_test.go
  2. 2 2
      integration/image/remove_unix_test.go
  3. 0 2
      integration/plugin/graphdriver/main_test.go

+ 0 - 1
integration/container/create_test.go

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

+ 2 - 2
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
 	// Run imageService.Cleanup() and make sure that layer was removed from disk
 	i.Cleanup()
 	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))
 }
 }

+ 0 - 2
integration/plugin/graphdriver/main_test.go

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