(token string)
| 102 | } |
| 103 | |
| 104 | func contextWithToken(token string) context.Context { |
| 105 | header := make(http.Header) |
| 106 | testclient.SetAuthorizationToken(header, token) |
| 107 | tctx, err := twirp.WithHTTPRequestHeaders(context.Background(), header) |
| 108 | if err != nil { |
| 109 | panic(err) |
| 110 | } |
| 111 | return tctx |
| 112 | } |
| 113 | |
| 114 | func waitForServerToStart(s *service.LivekitServer) { |
| 115 | // wait till ready |
no outgoing calls