Add comprehensive test coverage for pallet-robonomics-rws v2.0 auction lifecycle#396
Merged
akru merged 5 commits intofeat/rws2_0from Nov 28, 2025
Merged
Conversation
…fecycle, subscriptions, and fail cases Co-authored-by: akru <786394+akru@users.noreply.github.com>
Co-authored-by: akru <786394+akru@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add tests for auction life cycle and subscriptions
Add comprehensive test coverage for pallet-robonomics-rws v2.0 auction lifecycle
Nov 28, 2025
Member
|
@copilot Don't use pallet-robonomics-datalog here, please cleanup all mentions. |
…lances calls instead Co-authored-by: akru <786394+akru@users.noreply.github.com>
Contributor
Author
11 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.
PR #381 refactored the RWS pallet to a two-phase auction system (bid → claim) with static auction scheme, but lacked test coverage. This PR adds 24 tests covering auction lifecycle, subscriptions, and failure modes.
Changes
Test Infrastructure
RuntimeOrigin,RuntimeCall,RuntimeEvent)Test Coverage (24 tests)
Auction Lifecycle
Bidding
Claiming
Subscription Usage
pallet_balances::Call::transfer_allow_deathas mock transactions)ReferenceCallWeight × uTPS × delta_ms / 1_000_000_000Edge Cases
Example Test
All tests pass. No clippy warnings in test code.
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.