MediaE2E: Add app.close() to afterAll

This terminates the app after all test have finished.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-03-31 22:36:14 +02:00 committed by David Mehren
parent b2e89187f3
commit 4c02327546
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 4 additions and 2 deletions

View file

@ -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();
});
});

View file

@ -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();
});
});