From 4187d0dfda076e676371033f11d3b93fa7f6178c Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 9 Jul 2018 12:19:08 +0200 Subject: [PATCH] Update tests to tolerate mp3/mp3float. --- app/media/demuxer_test.go | 2 +- app/media/muxer_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/media/demuxer_test.go b/app/media/demuxer_test.go index 0c1bb91..9e60569 100644 --- a/app/media/demuxer_test.go +++ b/app/media/demuxer_test.go @@ -28,7 +28,7 @@ func Test_Demux(t *testing.T) { So(audioStream, ShouldBeNil) So(stream.StreamId, 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) audioStream = stream } diff --git a/app/media/muxer_test.go b/app/media/muxer_test.go index 39c0f02..c9d9b78 100644 --- a/app/media/muxer_test.go +++ b/app/media/muxer_test.go @@ -27,7 +27,7 @@ func Test_Muxer(t *testing.T) { So(audioStream, ShouldBeNil) So(stream.StreamId, 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) audioStream = stream }