test: Add test suites for federation, auth builder, broadcaster, and request coalescer - #566
Merged
Kingsman-99 merged 4 commits intoJul 29, 2026
Conversation
Add comprehensive test suite for request coalescing functionality that deduplicates concurrent identical RPC calls. Tests verify: - 10 concurrent calls result in exactly 1 RPC request - Rejection propagation to all concurrent callers - Key normalization for equivalent arguments - In-flight request counting - Cache cleanup after settlement Closes Stellar-split#456
…r-split#457 Add comprehensive test suite for WebSocket-based funding broadcaster that sends structured diff payloads for real-time invoice funding updates. Tests verify: - Batch 5 messages into single message within 100ms window - Correct delta and per-recipient delta computation - Stop lifecycle closes connection with close message - Queue and flush diffs on reconnect without data loss - Broadcaster statistics tracking Closes Stellar-split#457
…t#458 Add comprehensive test suite for Soroban contract auth entry builder with simulation pre-checks. Tests verify: - Build produces valid auth entry with required fields - AuthSimulationError thrown when simulation fails with diagnostic events - Multi-signer entries include all signatures with correct weights - Handles nested contract invocations - Simulation cost included in build result - Diagnostic events attached to error Closes Stellar-split#458
…#459 Add comprehensive test suite for Stellar federation address resolver with TOML caching and request coalescing. Tests verify: - Federation address resolution with correct accountId lookup - Raw public key passthrough without HTTP calls - TTL-based cache with expired entry refresh - Memoization of federation records - Concurrent request coalescing - Cache independence for multiple addresses - Custom TTL configuration Closes Stellar-split#459
|
@willowgray071-cpu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement comprehensive test suites for four critical SDK features:
Test Coverage
Each test suite validates acceptance criteria including:
Test Plan
Closes #459
Closes #458
Closes #457
Closes #456