From 4c023275464edf08ef2fce2210c44d0589b9946e Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Wed, 31 Mar 2021 22:36:14 +0200 Subject: [PATCH] MediaE2E: Add app.close() to afterAll This terminates the app after all test have finished. Signed-off-by: Philip Molares --- test/private-api/media.e2e-spec.ts | 3 ++- test/public-api/media.e2e-spec.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/private-api/media.e2e-spec.ts b/test/private-api/media.e2e-spec.ts index 2fc5f7c9a..5920ab3e5 100644 --- a/test/private-api/media.e2e-spec.ts +++ b/test/private-api/media.e2e-spec.ts @@ -133,6 +133,7 @@ describe('Media', () => { afterAll(async () => { // Delete the upload folder - await fs.rmdir(uploadPath); + await fs.rmdir(uploadPath, { recursive: true }); + await app.close(); }); }); diff --git a/test/public-api/media.e2e-spec.ts b/test/public-api/media.e2e-spec.ts index 97d35eb86..78a95b56f 100644 --- a/test/public-api/media.e2e-spec.ts +++ b/test/public-api/media.e2e-spec.ts @@ -142,6 +142,7 @@ describe('Media', () => { afterAll(async () => { // Delete the upload folder - await fs.rmdir(uploadPath); + await fs.rmdir(uploadPath, { recursive: true }); + await app.close(); }); });