revid: fixed Write for dummyMultiWriter in revid_test.go

This commit is contained in:
Saxon 2019-04-03 11:38:37 +10:30
parent a061a79805
commit 9435baec5c
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ func newDummyMultiWriter(dst ...io.Writer) io.Writer {
}
}
func (w *dummyMultiWriter) Write(d []byte) (int, error) { return 0, nil }
func (w *dummyMultiWriter) Write(d []byte) (int, error) { return len(d), nil }
// TestResetEncoderSenderSetup checks that revid.reset() correctly sets up the
// revid.encoder slice and the senders the encoders write to.