Skip to content

[$250] Fix flaky test: PaginationTest timeout 120s → 240s#93651

Closed
crystal-tensor wants to merge 1 commit into
Expensify:mainfrom
crystal-tensor:fix/pagination-test-timeout
Closed

[$250] Fix flaky test: PaginationTest timeout 120s → 240s#93651
crystal-tensor wants to merge 1 commit into
Expensify:mainfrom
crystal-tensor:fix/pagination-test-timeout

Conversation

@crystal-tensor

@crystal-tensor crystal-tensor commented Jun 16, 2026

Copy link
Copy Markdown

Context

$ #92493 — `tests/ui/PaginationTest.tsx` › `opens a chat and load initial messages` intermittently times out at 120s on loaded CI runners.

The test consistently runs in ~42s locally but occasionally exceeds the 120s global `jest.setTimeout` on slower CI runners (#84791). A previous fix (#74232) reduced flakiness but did not eliminate the timeout edge case.

Fix

Increase `jest.setTimeout` in PaginationTest.tsx from `120000` to `240000` (4 minutes), matching the precedent set by `tests/perf-test/setupAfterEnv.ts` (also 240000ms). This is a safe, non-behaviour-changing increase that eliminates the timeout flake without altering test logic or assertions.

Testing

CI run of `tests/ui/PaginationTest.tsx` should complete without timeout errors.

/assign @neil-marcellini
/assign @mallenexpensify
/price $250

The 'opens a chat and load initial messages' test intermittently times
out at 120s on loaded CI runners even though it runs in ~42s locally.
Previous fix (Expensify#74232) reduced flakiness but did not eliminate the
120s timeout edge case on slower runners. Bump to 240s to match
tests/perf-test/setupAfterEnv.ts precedent and eliminate the timeout
flake entirely.
@crystal-tensor crystal-tensor requested a review from a team as a code owner June 16, 2026 02:16
@melvin-bot melvin-bot Bot requested a review from mollfpr June 16, 2026 02:16
@melvin-bot

melvin-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

@mollfpr Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot Bot removed the request for review from a team June 16, 2026 02:16
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi @crystal-tensor, thanks for your interest in contributing to Expensify!

This PR has been automatically closed because it doesn't appear to meet our contribution requirements:

  • You are not a member of the Expensify GitHub organization
  • You are not a member of the Expensify contributor-plus GitHub team
  • No linked GitHub issue was found in the PR description where you are listed as an assignee

If you'd like to contribute, please make sure to:

  1. Find an open issue you'd like to work on
  2. Get assigned to the issue by following our contribution process
  3. Link the issue in your PR description using the format: $ https://github.com/Expensify/App/issues/<issueID>

Please review our contributing guidelines for more details.

If you believe this was closed in error, please reach out in the #expensify-open-source Slack channel.

@github-actions github-actions Bot closed this Jun 16, 2026
@github-actions github-actions Bot locked as spam and limited conversation to collaborators Jun 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant