From 28598ed1a7f17d8724828b0ae24a66d431770788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 19 Sep 2023 15:42:39 +0200 Subject: [PATCH] ci: Fix tests failing on MySQL (no-changelog) (#7208) https://github.com/n8n-io/n8n/actions/runs/6229338666/job/16907667212 --- packages/cli/test/integration/credentials.controller.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/test/integration/credentials.controller.test.ts b/packages/cli/test/integration/credentials.controller.test.ts index 1b55c71d46..b9caa9f95a 100644 --- a/packages/cli/test/integration/credentials.controller.test.ts +++ b/packages/cli/test/integration/credentials.controller.test.ts @@ -38,8 +38,8 @@ describe('GET /credentials', () => { response.body.data.forEach(validateCredential); - const savedIds = [id1, id2]; - const returnedIds = response.body.data.map((c) => c.id); + const savedIds = [id1, id2].sort(); + const returnedIds = response.body.data.map((c) => c.id).sort(); expect(savedIds).toEqual(returnedIds); });