remove read succesS
This commit is contained in:
parent
8fb17f60d9
commit
44b35b28eb
|
|
@ -21,7 +21,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_caching(t *testing.T) {
|
func Test_caching(t *testing.T) {
|
||||||
c := caching{layer: fakeLayer{}, readSuccess: true}
|
c := caching{layer: fakeLayer{}}
|
||||||
|
|
||||||
actual := c.Layer().(fakeLayer)
|
actual := c.Layer().(fakeLayer)
|
||||||
expected := fakeLayer{}
|
expected := fakeLayer{}
|
||||||
|
|
@ -29,8 +29,4 @@ func Test_caching(t *testing.T) {
|
||||||
if actualLen != expectedLen {
|
if actualLen != expectedLen {
|
||||||
t.Errorf("expected layer tar content to be %v but was %v", expectedLen, actualLen)
|
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())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -385,10 +385,6 @@ func Test_CachingCopyCommand_ExecuteCommand(t *testing.T) {
|
||||||
} else if c.layer != nil && !tc.expectLayer {
|
} else if c.layer != nil && !tc.expectLayer {
|
||||||
t.Error("expected the command to have no layer set but instead found a layer")
|
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)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -313,10 +313,6 @@ func Test_CachingRunCommand_ExecuteCommand(t *testing.T) {
|
||||||
} else if c.layer != nil && !tc.expectLayer {
|
} else if c.layer != nil && !tc.expectLayer {
|
||||||
t.Error("expected the command to have no layer set but instead found a layer")
|
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)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue