diff --git a/pkg/commands/cache_test.go b/pkg/commands/cache_test.go index b6201af83..1bc2bec59 100644 --- a/pkg/commands/cache_test.go +++ b/pkg/commands/cache_test.go @@ -21,7 +21,7 @@ import ( ) func Test_caching(t *testing.T) { - c := caching{layer: fakeLayer{}, readSuccess: true} + c := caching{layer: fakeLayer{}} actual := c.Layer().(fakeLayer) expected := fakeLayer{} @@ -29,8 +29,4 @@ func Test_caching(t *testing.T) { if actualLen != expectedLen { t.Errorf("expected layer tar content to be %v but was %v", expectedLen, actualLen) } - - if !c.ReadSuccess() { - t.Errorf("expected ReadSuccess to be %v but was %v", true, c.ReadSuccess()) - } } diff --git a/pkg/commands/copy_test.go b/pkg/commands/copy_test.go index dbcacfd11..09d60c5c5 100755 --- a/pkg/commands/copy_test.go +++ b/pkg/commands/copy_test.go @@ -385,10 +385,6 @@ func Test_CachingCopyCommand_ExecuteCommand(t *testing.T) { } else if c.layer != nil && !tc.expectLayer { t.Error("expected the command to have no layer set but instead found a layer") } - - if c.readSuccess != tc.expectLayer { - t.Errorf("expected read success to be %v but was %v", tc.expectLayer, c.readSuccess) - } }) } } diff --git a/pkg/commands/run_test.go b/pkg/commands/run_test.go index f6accc3bb..5a7139a6b 100644 --- a/pkg/commands/run_test.go +++ b/pkg/commands/run_test.go @@ -313,10 +313,6 @@ func Test_CachingRunCommand_ExecuteCommand(t *testing.T) { } else if c.layer != nil && !tc.expectLayer { t.Error("expected the command to have no layer set but instead found a layer") } - - if c.readSuccess != tc.expectLayer { - t.Errorf("expected read success to be %v but was %v", tc.expectLayer, c.readSuccess) - } }) } }