-
Notifications
You must be signed in to change notification settings - Fork 264
test: WilliamsR StreamHub late arrival tests #1726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v3
Are you sure you want to change the base?
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 📝 WalkthroughWalkthroughThe test file for WilliamsR StreamHub has been restructured to implement comprehensive rollback validation. The modifications establish a warmup phase using prefilled quotes, defer observer creation, then progressively add quotes with simulated streaming conditions including skipped indices and duplicate re-entries. A late-arrival quote is inserted, streaming results are validated against batch-computed expectations, followed by a deletion step with revised series comparison. The test concludes with cleanup operations. Assessment against linked issues
Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Enhanced QuoteObserver_WithWarmupLateArrivalAndRemoval_MatchesSeriesExactly() test to follow canonical EMA/ADX pattern with: - Warmup prefill (20 quotes before observer init) - Skip/late arrival (Insert) at index 80 - Duplicate handling for indices 101-104 - Removal using base class removeAtIndex constant (495) - Revised series comparison using RevisedQuotes from base class - Strict ordering verification with BeEquivalentTo - Proper cleanup with Unsubscribe() and EndTransmission() All test cases pass and match the canonical pattern from EMA/ADX StreamHub tests. Co-authored-by: DaveSkender <[email protected]>
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
The WilliamsR StreamHub test had basic rollback validation but didn't follow the canonical pattern established for other indicators (EMA, ADX). Missing: warmup prefill, late arrival (Insert), duplicate handling, and proper base class constant usage.
Changes
QuoteObserver_WithWarmupLateArrivalAndRemoval_MatchesSeriesExactly()removeAtIndexconstant (495), not hardcoded valueRevisedQuotesfrom base classBeEquivalentTo(..., o => o.WithStrictOrdering())Unsubscribe(),EndTransmission())Pattern
Now matches canonical EMA/ADX StreamHub test structure:
Addresses follow-on task T177 from #1723.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.