From 3841b8cb5b2342561b02865239e29247650483b9 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 10 Apr 2019 12:16:51 +0930 Subject: [PATCH] revid: fixed build error in revid_test.go --- revid/revid_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/revid/revid_test.go b/revid/revid_test.go index 867ded78..ccf0de3a 100644 --- a/revid/revid_test.go +++ b/revid/revid_test.go @@ -97,10 +97,10 @@ func (e *tstFlvEncoder) Write(d []byte) (int, error) { return len(d), nil } // dummyMultiWriter emulates the MultiWriter provided by std lib, so that we // can access the destinations. type dummyMultiWriter struct { - dst []io.Writer + dst []io.WriteCloser } -func newDummyMultiWriter(dst ...io.Writer) io.Writer { +func newDummyMultiWriter(dst ...io.WriteCloser) io.WriteCloser { return &dummyMultiWriter{ dst: dst, } @@ -108,6 +108,8 @@ func newDummyMultiWriter(dst ...io.Writer) io.Writer { func (w *dummyMultiWriter) Write(d []byte) (int, error) { return len(d), nil } +func (w *dummyMultiWriter) Close() error { return nil } + // TestResetEncoderSenderSetup checks that revid.reset() correctly sets up the // revid.encoder slice and the senders the encoders write to. func TestResetEncoderSenderSetup(t *testing.T) {