mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-08 10:00:27 +08:00
Skip bitrate measure test on darwin
This commit is contained in:

committed by
Lukas Herman

parent
5d5001d0b4
commit
7f41f9b8df
@@ -2,12 +2,18 @@ package codec
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMeasureBitRateStatic(t *testing.T) {
|
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()
|
r, w := io.Pipe()
|
||||||
const (
|
const (
|
||||||
dataSize = 1000
|
dataSize = 1000
|
||||||
@@ -54,6 +60,11 @@ func TestMeasureBitRateStatic(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMeasureBitRateDynamic(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()
|
r, w := io.Pipe()
|
||||||
const (
|
const (
|
||||||
dataSize = 1000
|
dataSize = 1000
|
||||||
|
Reference in New Issue
Block a user