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