-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
github_worker-in-progressgithub_worker temporary lock label.github_worker temporary lock label.
Description
Problem
packages/nostr-tools/src/pool.ts has critical relay-connect logic (parallel attempts, retry backoff, and log suppression) but no direct tests in the package. Regressions here can reintroduce noisy failures or slow request paths when one relay is unreachable.
Proposed work
- Add focused tests for
SimplePool.ensureRelaysbehavior via mocked rust-sdk client. - Verify one failing relay does not block successful relays from being used.
- Verify retry/backoff skip window behavior for failed relays.
- Verify duplicate concurrent connect attempts for same relay share in-flight connection.
Acceptance criteria
packages/nostr-toolshas tests covering relay failure/backoff/concurrency behavior.- Tests fail if relay connections revert to serial blocking behavior.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
github_worker-in-progressgithub_worker temporary lock label.github_worker temporary lock label.