Skip to content

test(codeapi): Stabilize cleanup-claim renewal timing test #136

Description

@danny-avila

The service test RedisBridgePairingStore > renews the cleanup claim while a shared-keyspace scan is in flight is timing-sensitive under full-suite CI load.

It configures a 30 ms claim TTL, renews every 10 ms, sleeps 80 ms inside the scan, and asserts after 45 ms. Event-loop stalls longer than the TTL can expire the mocked Redis claim before the renewal callback runs, causing Legacy pairing cleanup claim was lost even though the production logic and the test target are unchanged.

Please make the test deterministic (for example, coordinate renewal/expiry through a controllable fake) or use timing margins that tolerate CI scheduling while still proving the claim is renewed during the scan.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions