Test reliability - give time for HTTP server to start
This commit is contained in:
@@ -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