Skip to content

Flaky test: audit-fixes 'TimeoutError carries the configured timeout' fails ~1/N runs #120

@productdevbook

Description

@productdevbook

Summary

test/audit-fixes.test.ts > TimeoutError carries the configured timeout has been intermittently failing across multiple test-coverage cycles (5, 6, 7). It passes in isolation and on most full-suite runs, but fails roughly 1 in N times when the suite is under load.

Notes

Suggested fix

  • Inspect the test for an assertion that compares an observed elapsed time against the configured timeoutMs. Either widen the tolerance or pin the timeout via vi.useFakeTimers().
  • Alternatively, add a retry annotation (it.retry(2)) if the underlying behavior is correct and only the timing is flaky.

Filed during cycle 7 hedge-coverage review (PR #119).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions