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")
|
reconnectParam := r.FormValue("reconnect")
|
||||||
protocolParam := r.FormValue("protocol")
|
protocolParam := r.FormValue("protocol")
|
||||||
autoSubParam := r.FormValue("auto_subscribe")
|
autoSubParam := r.FormValue("auto_subscribe")
|
||||||
|
// plan b does not work fully at the moment.
|
||||||
planBParam := r.FormValue("planb")
|
planBParam := r.FormValue("planb")
|
||||||
|
|
||||||
claims := GetGrants(r.Context())
|
claims := GetGrants(r.Context())
|
||||||
|
|||||||
@@ -168,6 +168,9 @@ func (s *LivekitServer) Start() error {
|
|||||||
|
|
||||||
go s.backgroundWorker()
|
go s.backgroundWorker()
|
||||||
|
|
||||||
|
// give time for Serve goroutine to start
|
||||||
|
time.Sleep(10 * time.Millisecond)
|
||||||
|
|
||||||
s.running.TrySet(true)
|
s.running.TrySet(true)
|
||||||
|
|
||||||
<-s.doneChan
|
<-s.doneChan
|
||||||
|
|||||||
Reference in New Issue
Block a user