From 0ebaa7c8387cc6a4c7fecfcef932264289e0fa89 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 31 Jul 2022 21:39:25 +0200 Subject: [PATCH] tests(e2e/private/auth): fix race in cleanup Signed-off-by: David Mehren --- test/private-api/auth.e2e-spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/private-api/auth.e2e-spec.ts b/test/private-api/auth.e2e-spec.ts index c299e9c38..7d9f9529b 100644 --- a/test/private-api/auth.e2e-spec.ts +++ b/test/private-api/auth.e2e-spec.ts @@ -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(); });