Test reliability - give time for HTTP server to start

This commit is contained in:
David Zhao
2021-06-09 13:54:52 -07:00
parent 6278673b46
commit db7d5fff52
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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