mirror of
https://github.com/livekit/livekit.git
synced 2026-04-26 10:57:38 +00:00
Test reliability - give time for HTTP server to start
This commit is contained in:
@@ -53,6 +53,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
reconnectParam := r.FormValue("reconnect")
|
||||
protocolParam := r.FormValue("protocol")
|
||||
autoSubParam := r.FormValue("auto_subscribe")
|
||||
// plan b does not work fully at the moment.
|
||||
planBParam := r.FormValue("planb")
|
||||
|
||||
claims := GetGrants(r.Context())
|
||||
|
||||
@@ -168,6 +168,9 @@ func (s *LivekitServer) Start() error {
|
||||
|
||||
go s.backgroundWorker()
|
||||
|
||||
// give time for Serve goroutine to start
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
|
||||
s.running.TrySet(true)
|
||||
|
||||
<-s.doneChan
|
||||
|
||||
Reference in New Issue
Block a user