test: add integration and indexer test coverage - #151
Merged
valoryyaa-byte merged 4 commits intoJul 28, 2026
Merged
Conversation
Run npm run lint before npm run build to catch linting regressions in CI. Closes RWA-ToolKit#52
Add logging to parse_i128 to warn when input cannot be parsed, then return the safe default of 0. Add test to verify invalid inputs are handled gracefully and logged rather than silently zeroed without trace. Closes RWA-ToolKit#50
Add 30-second timeout to RPC requests in read_once. Timeout errors are treated as transient and retried with backoff. Add test to verify timeout errors are properly classified as retryable. Closes RWA-ToolKit#51
…snapshots Add comprehensive smoke tests that boot the router with a hand-built Snapshot and verify all endpoints work correctly. Include tests for: - Snapshot structure and data - Asset filtering (by type, active status) - Asset detail lookups - Holder retrieval - Compliance summaries - Dividend distributions - Platform-wide statistics Also define PrometheusHandle and PrometheusBuilder types for metrics support. Closes RWA-ToolKit#49
|
@famvilianity-eng 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! 🚀 |
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
This PR adds comprehensive test coverage for:
Changes
Issue #49: Integration test that boots router with seeded AppState and hits every endpoint (GET /, /health, /metrics, /stats, /assets, /assets/:id, /assets/:id/holders, /assets/:id/compliance, /assets/:id/dividends)
Issue #50: Added logging when i128 parsing fails to catch malformed integer inputs, plus test to verify behavior
Issue #51: Added 30-second timeout to RPC requests that classifies timeout errors as transient and retryable, plus tests
Issue #52: Added npm run lint to docs CI workflow before build step
Test Plan
Closes #49
Closes #50
Closes #51
Closes #52