test: extra test (werkt nog niet)

This commit is contained in:
laurejablonski 2025-05-16 23:39:27 +02:00
parent c847851119
commit f6bf37b3bc
2 changed files with 34 additions and 1 deletions

View file

@ -1,5 +1,6 @@
import { spawn } from "child_process";
import { ChildProcess, spawnSync } from "node:child_process";
import { getLogger } from "../../backend/src/logging/initalize";
let backendProcess: ChildProcess;
@ -35,6 +36,8 @@ export async function setup(): Promise<void> {
export async function teardown(): Promise<void> {
if (backendProcess) {
backendProcess.kill();
while (!backendProcess.kill()) {
getLogger().error(`Failed to kill backend process! Retrying...`);
}
}
}