Skip to content

Make node auto-approve tests deterministic #460

Description

@shanselman

PR #457's auto-approval behavior is now covered well, but a few negative/dedup checks still use short Task.Delay(...) waits to prove something did not happen, and one path depends on the production 1s reconnect delay.

Follow-up:

  • Replace timing-based negative assertions with deterministic completion/synchronization signals.
  • Consider injecting a delay/time provider into GatewayConnectionManager so tests can set the post-approve reconnect delay to zero.
  • Preserve coverage for: other-node requests are ignored, missing approval scope is ignored, duplicate request IDs are not approved twice, and node-side skipped attempts do not suppress later operator-side approval.

Context: identified during review of #457.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestissue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions