feat(server): pick free port if none specified (#1274)

This commit is contained in:
Marvin Hagemeister
2023-06-12 13:18:52 +02:00
committed by GitHub
parent 69f4fecf5a
commit 36d56a9878
10 changed files with 107 additions and 61 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ Deno.test({
ignore: Deno.build.os === "windows",
async fn(t) {
// Preparation
const { lines, serverProcess } = await startFreshServer({
const { lines, serverProcess, address } = await startFreshServer({
args: ["run", "-A", "./tests/fixture/main_wasm.ts"],
});
@@ -27,7 +27,7 @@ Deno.test({
assert(value === `${originalValue + 1}`, `${counterId} click`);
}
await page.goto("http://localhost:8000/islands", {
await page.goto(`${address}/islands`, {
waitUntil: "networkidle2",
});