(dist_dir)
| 135 | |
| 136 | @contextlib.contextmanager |
| 137 | def launch_server(dist_dir): |
| 138 | q = queue.Queue() |
| 139 | p = threading.Thread(target=run_server_thread, args=[dist_dir, q], daemon=True) |
| 140 | p.start() |
| 141 | address = q.get(timeout=50) |
| 142 | time.sleep(0.1) # wait to make sure server is started |
| 143 | yield address |
| 144 | p.terminate() |
| 145 | |
| 146 | |
| 147 | class NodeDriver: |
no test coverage detected