diff --git a/installer/installer_test.go b/installer/installer_test.go index 302fcc231..a689da262 100644 --- a/installer/installer_test.go +++ b/installer/installer_test.go @@ -97,8 +97,12 @@ func TestInstallNoSignature(t *testing.T) { type fDevice struct{} -func (d *fDevice) InstallUpdate(io.ReadCloser, int64) error { return nil } -func (d *fDevice) EnableUpdatedPartition() error { return nil } +func (d *fDevice) InstallUpdate(r io.ReadCloser, l int64) error { + _, err := io.Copy(ioutil.Discard, r) + return err +} + +func (d *fDevice) EnableUpdatedPartition() error { return nil } const ( PublicRSAKey = `-----BEGIN PUBLIC KEY-----