Pick a random high port unlikely to conflict
()
| 2104 | |
| 2105 | /** Pick a random high port unlikely to conflict */ |
| 2106 | function randomPort(): number { |
| 2107 | return 10000 + Math.floor(Math.random() * 50000); |
| 2108 | } |
| 2109 | |
| 2110 | beforeAll(async () => { |
| 2111 | daemonTestDir = await mkdtemp(join(tmpdir(), "qmd-daemon-test-")); |