(dist_dir)
| 124 | |
| 125 | @contextlib.contextmanager |
| 126 | def launch_server(dist_dir): |
| 127 | q = queue.Queue() |
| 128 | p = threading.Thread(target=run_server_thread, args=[dist_dir, q], daemon=True) |
| 129 | p.start() |
| 130 | address = q.get(timeout=50) |
| 131 | time.sleep(0.1) # wait to make sure server is started |
| 132 | yield address |
| 133 | p.terminate() |
| 134 | |
| 135 | |
| 136 | class NodeDriver: |
no test coverage detected