chore: fix wait for child process shutdown (#1777)

This commit is contained in:
Marvin Hagemeister
2023-09-15 13:02:44 +02:00
committed by GitHub
parent e59472e35a
commit 32ee75dee5
4 changed files with 7 additions and 3 deletions
+1 -3
View File
@@ -1,5 +1,4 @@
import { assertArrayIncludes, assertEquals } from "$std/testing/asserts.ts";
import { delay } from "$std/async/delay.ts";
import { startFreshServer, withPageName } from "../tests/test_utils.ts";
import { dirname, join } from "$std/path/mod.ts";
import VERSIONS from "../versions.json" assert { type: "json" };
@@ -20,8 +19,7 @@ Deno.test("CORS should not set on GET /fresh-badge.svg", {
await lines.cancel();
serverProcess.kill("SIGTERM");
// await for the server to close
await delay(100);
await serverProcess.status;
});
Deno.test("shows version selector", {