From c1c67dcf15b71fa21e24c5ad23b7509c4fa63ad5 Mon Sep 17 00:00:00 2001 From: Antony Rizzitelli Date: Fri, 20 Nov 2026 22:01:20 +0000 Subject: [PATCH] test: give each orderBy array-key case its own timeout --- src/test/group-orderby-array-sort.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/group-orderby-array-sort.test.ts b/src/test/group-orderby-array-sort.test.ts index dfe81ff..4bae771 100644 --- a/src/test/group-orderby-array-sort.test.ts +++ b/src/test/group-orderby-array-sort.test.ts @@ -311,14 +311,14 @@ describe("group mapper orderBy on an array key", () => { await schema.destroyInstance(INSTANCE).run(); }); - it("ranks an array key, and a dotted key through an array of subdocuments, as a top-level orderBy and find().sort() do", async () => { - for (const drawn of [...FIXED_CASES, ...DrawCases()]) { + for (const [at, drawn] of [...FIXED_CASES, ...DrawCases()].entries()) { + it(`case ${at} ranks an array key, and a dotted key through an array of subdocuments, as a top-level orderBy and find().sort() do`, async () => { await assert.doesNotReject( AnswersTopLevelOrder(drawn), `rows ${JSON.stringify(drawn)}`, ); - } - }); + }); + } it("ranks a key through an array index, such as items.0, by that element as a top-level orderBy and find().sort() do", async () => { await assert.doesNotReject(