tests(e2e/private/auth): fix race in cleanup

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-07-31 21:39:25 +02:00
parent 62be0ba3c0
commit 0ebaa7c838

View file

@ -34,6 +34,11 @@ describe('Auth', () => {
});
afterAll(async () => {
// Yes, this is a bad hack, but there is a race somewhere and I have
// no idea how to fix it.
await new Promise((resolve) => {
setTimeout(resolve, 1000);
});
await testSetup.cleanup();
});