mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04: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 () => {
|
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();
|
await testSetup.cleanup();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue