Skip to content

Commit

Permalink
Skip bitrate measure test on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored and lherman-cs committed Dec 11, 2020
1 parent 5d5001d commit 7f41f9b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/codec/measurement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f41f9b

Please sign in to comment.