From 9d58be1f650383d54c798494b66dc840a44f1065 Mon Sep 17 00:00:00 2001 From: Michal Date: Wed, 24 Apr 2024 18:53:57 +0000 Subject: [PATCH] tests: increase re-try count --- src/components/__tests__/DropdownSelect.spec.ts | 4 ++-- src/helpers/__tests__/normaliseOptions.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/__tests__/DropdownSelect.spec.ts b/src/components/__tests__/DropdownSelect.spec.ts index 19d6435..ddca569 100644 --- a/src/components/__tests__/DropdownSelect.spec.ts +++ b/src/components/__tests__/DropdownSelect.spec.ts @@ -6,7 +6,7 @@ import "html-validate/vitest"; describe("Dropdown Select", () => { // We need a retry here because the performance.now can be flakey - it("renders correctly", { retry: 3 }, async () => { + it("renders correctly", { retry: 5 }, async () => { const start = performance.now(); const wrapper = mount(DropdownSelect, { @@ -457,7 +457,7 @@ describe("Dropdown Select", () => { // We need a retry here because the performance.now can be flakey it( "should render a large number of options, 1000000, in less than 200ms", - { retry: 3 }, + { retry: 5 }, () => { const options = Array.from({ length: 1000000 }, (_, i) => `Option ${i}`); const start = performance.now(); diff --git a/src/helpers/__tests__/normaliseOptions.spec.ts b/src/helpers/__tests__/normaliseOptions.spec.ts index 984291c..e854b85 100644 --- a/src/helpers/__tests__/normaliseOptions.spec.ts +++ b/src/helpers/__tests__/normaliseOptions.spec.ts @@ -8,7 +8,7 @@ import { describe("filterOptions Functions", () => { // We need a retry here because the performance.now can be flakey - it("is performant with a large number of options", { retry: 3 }, () => { + it("is performant with a large number of options", { retry: 5 }, () => { const generatedOptions = Array.from({ length: 1000000 }, (_, i) => ({ id: i, render: `Option ${i}`,