Browse code

integration: remove unused constants and fields (unused)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/09/13 06:47:49
Showing 3 changed files
... ...
@@ -385,7 +385,6 @@ func TestCreateWithCustomReadonlyPaths(t *testing.T) {
385 385
 	ctx := context.Background()
386 386
 
387 387
 	testCases := []struct {
388
-		doc           string
389 388
 		readonlyPaths []string
390 389
 		expected      []string
391 390
 	}{
... ...
@@ -88,6 +88,6 @@ func TestRemoveImageGarbageCollector(t *testing.T) {
88 88
 
89 89
 	// Run imageService.Cleanup() and make sure that layer was removed from disk
90 90
 	i.Cleanup()
91
-	dir, err = os.Stat(data["UpperDir"])
92
-	assert.ErrorContains(t, err, "no such file or directory")
91
+	_, err = os.Stat(data["UpperDir"])
92
+	assert.Assert(t, os.IsNotExist(err))
93 93
 }
... ...
@@ -17,8 +17,6 @@ func init() {
17 17
 	reexec.Init() // This is required for external graphdriver tests
18 18
 }
19 19
 
20
-const dockerdBinary = "dockerd"
21
-
22 20
 func TestMain(m *testing.M) {
23 21
 	var err error
24 22
 	testEnv, err = environment.New()