backend-test-utils: automatically stop backends after test

Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-12-02 14:01:28 +01:00
parent 07342778df
commit 52a9bd35c7
4 changed files with 38 additions and 5 deletions
@@ -170,7 +170,7 @@ export class BackendInitializer {
async stop(): Promise<void> {
if (!this.#started) {
throw new Error('Backend has not started');
return;
}
this.#started = false;