From 7f41f9b8df3260bf02a731c42f5345e61149d1ec Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Fri, 11 Dec 2020 15:19:46 +0900 Subject: [PATCH] Skip bitrate measure test on darwin --- internal/codec/measurement_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/codec/measurement_test.go b/internal/codec/measurement_test.go index 8796089d..ce759c79 100644 --- a/internal/codec/measurement_test.go +++ b/internal/codec/measurement_test.go @@ -2,12 +2,18 @@ package codec import ( "io" + "runtime" "sync" "testing" "time" ) func TestMeasureBitRateStatic(t *testing.T) { + // https://github.com/pion/mediadevices/issues/198 + if runtime.GOOS == "darwin" { + t.Skip("Skipping because Darwin CI is not reliable for timing related tests.") + } + r, w := io.Pipe() const ( dataSize = 1000 @@ -54,6 +60,11 @@ func TestMeasureBitRateStatic(t *testing.T) { } func TestMeasureBitRateDynamic(t *testing.T) { + // https://github.com/pion/mediadevices/issues/198 + if runtime.GOOS == "darwin" { + t.Skip("Skipping because Darwin CI is not reliable for timing related tests.") + } + r, w := io.Pipe() const ( dataSize = 1000