fix race condition in TestMetrics (#1830)
This commit is contained in:
parent
330a9e027c
commit
13fb559f5f
|
@ -7,6 +7,7 @@ import (
|
|||
"net/url"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
|
@ -103,6 +104,8 @@ webrtc_sessions_bytes_sent 0
|
|||
err = conn.WriteTracks(videoTrack, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
|
||||
bo = httpPullFile(t, hc, "http://localhost:9998/metrics")
|
||||
|
||||
require.Regexp(t,
|
||||
|
|
Loading…
Reference in New Issue