Skip to content

Commit

Permalink
tests: increase re-try count
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 24, 2024
1 parent 5e1befc commit 9d58be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/__tests__/DropdownSelect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__tests__/normaliseOptions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 9d58be1

Please sign in to comment.