Skip to content

fix: flaky test due to clock assertion - #53

Merged
cryptotavares merged 1 commit into
mainfrom
fix-flaky-recheck-deadline-test
Oct 15, 2026
Merged

cryptotavares merged 1 commit into
mainfrom
fix-flaky-recheck-deadline-test

Conversation

@seaona

@seaona seaona commented Oct 15, 2026

Copy link
Copy Markdown
Member

Description

We have a flaky tests which has failed multiple times in ci with this error:

image

https://github.com/MetaMask/client-mcp-core/actions/runs/38712747231/job/116348149969

The "retries up to deadline and returns 'unknown'" test advances fake timers by 500 ms, then asserts that real elapsed time was ≤ 600 ms. That real time includes the HTTP round trip, so it fails on slow CI runners. The fake-timer deadline and the toHaveBeenCalledTimes(6) check already verify the behaviour, so the wall-clock check is removed.

@cryptotavares
cryptotavares merged commit 60c8952 into main Oct 15, 2026
27 checks passed
@cryptotavares
cryptotavares deleted the fix-flaky-recheck-deadline-test branch October 15, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants