mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
tests(e2e/private/auth): fix race in cleanup
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
62be0ba3c0
commit
0ebaa7c838
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue