Update tests to tolerate mp3/mp3float.

master
Icedream 2018-07-09 12:19:08 +02:00
parent a4e70df617
commit 4187d0dfda
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func Test_Demux(t *testing.T) {
So(audioStream, ShouldBeNil) So(audioStream, ShouldBeNil)
So(stream.StreamId, ShouldEqual, 0) So(stream.StreamId, ShouldEqual, 0)
So(stream.Pts, ShouldEqual, 0) So(stream.Pts, ShouldEqual, 0)
So(stream.CodecInfo.CodecName, ShouldEqual, "mp3") So(stream.CodecInfo.CodecName, ShouldBeIn, []string{"mp3", "mp3float"})
So(stream.CodecInfo.Type, ShouldEqual, Audio) So(stream.CodecInfo.Type, ShouldEqual, Audio)
audioStream = stream audioStream = stream
} }

View File

@ -27,7 +27,7 @@ func Test_Muxer(t *testing.T) {
So(audioStream, ShouldBeNil) So(audioStream, ShouldBeNil)
So(stream.StreamId, ShouldEqual, 0) So(stream.StreamId, ShouldEqual, 0)
So(stream.Pts, ShouldEqual, 0) So(stream.Pts, ShouldEqual, 0)
So(stream.CodecInfo.CodecName, ShouldEqual, "mp3") So(stream.CodecInfo.CodecName, ShouldBeIn, []string{"mp3", "mp3float"})
So(stream.CodecInfo.Type, ShouldEqual, Audio) So(stream.CodecInfo.Type, ShouldEqual, Audio)
audioStream = stream audioStream = stream
} }