From 8aeb19aabe0058e7ab895528198c582ae4f101d5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 28 Oct 2024 10:54:00 +0100 Subject: [PATCH] Fix flakiness --- packages/server/src/api/routes/tests/row.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index 19f11a044a..72ade0a69a 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -1199,16 +1199,16 @@ describe.each([ expect(row).toEqual( expect.objectContaining({ name: "test", - related1: [ - { - _id: relatedRows[1]._id, - primaryDisplay: relatedRows[1].name, - }, + related1: expect.arrayContaining([ { _id: relatedRows[0]._id, primaryDisplay: relatedRows[0].name, }, - ], + { + _id: relatedRows[1]._id, + primaryDisplay: relatedRows[1].name, + }, + ]), related2: [ { _id: relatedRows[2]._id,