mirror of https://bitbucket.org/ausocean/av.git
av: fixed broken tests
This commit is contained in:
parent
3534d9031a
commit
56a9b7d6ef
|
@ -38,7 +38,7 @@ import (
|
|||
type buffer bytes.Buffer
|
||||
|
||||
func (b *buffer) Write(d []byte) (int, error) {
|
||||
return b.Write(d)
|
||||
return (*bytes.Buffer)(b).Write(d)
|
||||
}
|
||||
|
||||
func (b *buffer) Close() error { return nil }
|
||||
|
|
|
@ -222,6 +222,8 @@ func (rs *rtmpSender) Write(p []byte) (int, error) {
|
|||
return n, nil
|
||||
}
|
||||
|
||||
func (rs *rtmpSender) Close() error { return nil }
|
||||
|
||||
// TestFromFile tests streaming from an video file comprising raw H.264.
|
||||
// The test file is supplied via the RTMP_TEST_FILE environment variable.
|
||||
func TestFromFile(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue