From 88f9e3199c9a12758d8540ecdbc0b6a2342574d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 23 Jun 2023 13:22:19 +0200 Subject: [PATCH] queue close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/api/UsersApi.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/api/UsersApi.spec.js b/cypress/e2e/api/UsersApi.spec.js index 39d94957166..d7f1673b64a 100644 --- a/cypress/e2e/api/UsersApi.spec.js +++ b/cypress/e2e/api/UsersApi.spec.js @@ -96,9 +96,9 @@ describe('The user mention API', function() { } cy.request(invalidRequestDataDocumentId).then(({ status }) => { expect(status).to.eq(403) - }) + }).then(() => (connection.close())) - cy.wrap(connection.close()) + cy.wait(1000) cy.request(requestData).then(({ status, body }) => { expect(status).to.eq(403)