test: Consistently clean up folder before stopping server

There seems to be some integration tests that sometimes fail
on tests where the order is reversed.
Hopefully this resolves the problem.
This commit is contained in:
Joachim Van Herwegen
2023-10-05 09:46:09 +02:00
parent d618f9781a
commit db66e3df75
4 changed files with 5 additions and 8 deletions

View File

@@ -53,11 +53,8 @@ void => {
});
afterAll(async(): Promise<void> => {
// Stop the server
await app.stop();
// Execute the configured teardown
await teardown();
await app.stop();
});
it('should not be affected by dangling locks.', async(): Promise<void> => {